We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e90fcf commit 1c4c634Copy full SHA for 1c4c634
src/veil/ringct/rpcanonwallet.cpp
@@ -2485,6 +2485,13 @@ static UniValue getwatchonlystatus(const JSONRPCRequest &request)
2485
2486
int current_count = 0;
2487
if (GetWatchOnlyKeyCount(sxAddr.scan_secret, current_count)) {
2488
+ // Handle legacy bug: first tx may be at index 0 with count stored as 0
2489
+ if (current_count == 0) {
2490
+ CWatchOnlyTx checkTx;
2491
+ if (ReadWatchOnlyTransaction(sxAddr.scan_secret, 0, checkTx)) {
2492
+ current_count = 1;
2493
+ }
2494
2495
result.pushKV("transactions_found", current_count);
2496
}
2497
0 commit comments