mirror of
https://git.hush.is/hush/hush3.git
synced 2025-11-22 00:11:39 -05:00
Log outpoint for failed Sapling witness lookup
This commit is contained in:
parent
28e604dd0b
commit
0938bd6b7b
@ -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…
x
Reference in New Issue
Block a user