You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/wallet/receive.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,9 @@ struct Balance {
48
48
CAmount m_mine_untrusted_pending{0}; //!< Untrusted, but in mempool (pending)
49
49
CAmount m_mine_immature{0}; //!< Immature coinbases in the main chain
50
50
CAmount m_mine_used{0}; //!< Trusted/untrusted/immature funds in utxos that have already been spent from (only populated if AVOID REUSE wallet flag is set)
51
+
CAmount m_mine_nonmempool{0}; //!< Coins spent by wallet txs that are not in the mempool
Copy file name to clipboardExpand all lines: src/wallet/rpc/coins.cpp
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -413,6 +413,7 @@ RPCHelpMan getbalances()
413
413
{RPCResult::Type::STR_AMOUNT, "trusted", "trusted balance (outputs created by the wallet or confirmed outputs)"},
414
414
{RPCResult::Type::STR_AMOUNT, "untrusted_pending", "untrusted pending balance (outputs created by others that are in the mempool)"},
415
415
{RPCResult::Type::STR_AMOUNT, "immature", "balance from immature coinbase outputs"},
416
+
{RPCResult::Type::STR_AMOUNT, "nonmempool", "sum of coins that are locked or spent by transactions not in the mempool (usually an over-estimate due to not accounting for change or spends that conflict with each other)"},
416
417
{RPCResult::Type::STR_AMOUNT, "used", /*optional=*/true, "(only present if avoid_reuse is set) balance from coins sent to addresses that were previously spent from (potentially privacy violating)"},
417
418
}},
418
419
RESULT_LAST_PROCESSED_BLOCK,
@@ -433,14 +434,15 @@ RPCHelpMan getbalances()
433
434
434
435
LOCK(wallet.cs_wallet);
435
436
436
-
constauto bal = GetBalance(wallet, /*min_depth=*/0, /*avoid_reuse=*/true);
437
+
constauto bal = GetBalance(wallet, /*min_depth=*/0, /*avoid_reuse=*/true, /*include_nonmempool=*/true);
0 commit comments