change maybe_cm to maybe_cmu
This commit is contained in:
parent
445ae593d6
commit
8ebe538eaa
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue