From a719e05be4144b51512e8f98a94efc92b756713e Mon Sep 17 00:00:00 2001 From: Duke Date: Thu, 21 Aug 2025 02:00:19 -0400 Subject: [PATCH] Add output index to z_listlockunspent --- src/wallet/rpcwallet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index e1ff70cfd..30cacabe3 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2678,6 +2678,7 @@ UniValue z_listlockunspent(const UniValue& params, bool fHelp, const CPubKey& my UniValue o(UniValue::VOBJ); o.push_back(Pair("txid", op.hash.GetHex())); + o.push_back(Pair("n", (int) op.n)); ret.push_back(o); } @@ -4120,7 +4121,6 @@ UniValue z_getbalances(const UniValue& params, bool fHelp, const CPubKey& mypk) return results; } - UniValue z_listunspent(const UniValue& params, bool fHelp, const CPubKey& mypk) { if (!EnsureWalletIsAvailable(fHelp)) @@ -5994,7 +5994,7 @@ UniValue z_mergetoaddress(const UniValue& params, bool fHelp, const CPubKey& myp // Create operation and add to global queue std::shared_ptr q = getAsyncRPCQueue(); std::shared_ptr operation( - new AsyncRPCOperation_mergetoaddress(builder, contextualTx, utxoInputs, saplingNoteInputs, recipient, nFee, contextInfo) ); + new AsyncRPCOperation_mergetoaddress(builder, contextualTx, utxoInputs, saplingNoteInputs, recipient, nFee, contextInfo) ); q->addOperation(operation); AsyncRPCOperationId operationId = operation->getId();