Use the correct variable for missing witness error
This commit is contained in:
@@ -436,7 +436,7 @@ bool AsyncRPCOperation_sendmany::main_impl() {
|
||||
for (size_t i = 0; i < notes.size(); i++) {
|
||||
if (!witnesses[i]) {
|
||||
throw JSONRPCError(RPC_WALLET_ERROR,
|
||||
strprintf( "Missing witness for Sapling note at outpoint %s", notes[i].op.ToString())
|
||||
strprintf( "Missing witness for Sapling note at outpoint %s", z_sapling_inputs_[i].op.ToString())
|
||||
);
|
||||
}
|
||||
assert(builder_.AddSaplingSpend(expsk, notes[i], anchor, witnesses[i].get()));
|
||||
|
||||
Reference in New Issue
Block a user