Browse Source

Log outpoint for failed Sapling witness lookup

pull/199/head
Jonathan "Duke" Leto 2 years ago
parent
commit
0938bd6b7b
  1. 4
      src/wallet/asyncrpcoperation_sendmany.cpp

4
src/wallet/asyncrpcoperation_sendmany.cpp

@ -435,7 +435,9 @@ bool AsyncRPCOperation_sendmany::main_impl() {
// Add Sapling spends
for (size_t i = 0; i < notes.size(); i++) {
if (!witnesses[i]) {
throw JSONRPCError(RPC_WALLET_ERROR, "Missing witness for Sapling note");
throw JSONRPCError(RPC_WALLET_ERROR,
strprintf( "Missing witness for Sapling note at outpoint %s", notes[i].op.ToString())
);
}
assert(builder_.AddSaplingSpend(expsk, notes[i], anchor, witnesses[i].get()));
}

Loading…
Cancel
Save