change maybe_cm to maybe_cmu

This commit is contained in:
Alfredo Garcia 2020-02-26 18:33:49 -03:00
parent 445ae593d6
commit 8ebe538eaa
1 changed files with 3 additions and 3 deletions

View File

@ -596,12 +596,12 @@ double benchmark_create_sapling_spend()
auto address = sk.default_address();
SaplingNote note(address, GetRand(MAX_MONEY));
SaplingMerkleTree tree;
auto maybe_cm = note.cmu();
tree.append(maybe_cm.get());
auto maybe_cmu = note.cmu();
tree.append(maybe_cmu.get());
auto anchor = tree.root();
auto witness = tree.witness();
auto maybe_nf = note.nullifier(expsk.full_viewing_key(), witness.position());
if (!(maybe_cm && maybe_nf)) {
if (!(maybe_cmu && maybe_nf)) {
throw JSONRPCError(RPC_INTERNAL_ERROR, "Could not create note commitment and nullifier");
}