File tree Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -214,29 +214,6 @@ RPCHelpMan getbalance()
214
214
};
215
215
}
216
216
217
- RPCHelpMan getunconfirmedbalance ()
218
- {
219
- return RPCHelpMan{" getunconfirmedbalance" ,
220
- " DEPRECATED\n Identical to getbalances().mine.untrusted_pending\n " ,
221
- {},
222
- RPCResult{RPCResult::Type::NUM, " " , " The balance" },
223
- RPCExamples{" " },
224
- [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
225
- {
226
- const std::shared_ptr<const CWallet> pwallet = GetWalletForJSONRPCRequest (request);
227
- if (!pwallet) return UniValue::VNULL;
228
-
229
- // Make sure the results are valid at least up to the most recent block
230
- // the user could have gotten from another RPC command prior to now
231
- pwallet->BlockUntilSyncedToCurrentChain ();
232
-
233
- LOCK (pwallet->cs_wallet );
234
-
235
- return ValueFromAmount (GetBalance (*pwallet).m_mine_untrusted_pending );
236
- },
237
- };
238
- }
239
-
240
217
RPCHelpMan lockunspent ()
241
218
{
242
219
return RPCHelpMan{
Original file line number Diff line number Diff line change @@ -956,7 +956,6 @@ RPCHelpMan restorewallet();
956
956
RPCHelpMan getreceivedbyaddress ();
957
957
RPCHelpMan getreceivedbylabel ();
958
958
RPCHelpMan getbalance ();
959
- RPCHelpMan getunconfirmedbalance ();
960
959
RPCHelpMan lockunspent ();
961
960
RPCHelpMan listlockunspent ();
962
961
RPCHelpMan getbalances ();
@@ -1016,7 +1015,6 @@ std::span<const CRPCCommand> GetWalletRPCCommands()
1016
1015
{" wallet" , &getreceivedbyaddress},
1017
1016
{" wallet" , &getreceivedbylabel},
1018
1017
{" wallet" , &gettransaction},
1019
- {" wallet" , &getunconfirmedbalance},
1020
1018
{" wallet" , &getbalances},
1021
1019
{" wallet" , &getwalletinfo},
1022
1020
{" wallet" , &importdescriptors},
Original file line number Diff line number Diff line change @@ -167,9 +167,6 @@ def test_balances(*, fee_node_1=0):
167
167
# TODO: fix getbalance tracking of coin spentness depth
168
168
assert_equal (self .nodes [0 ].getbalance (minconf = 1 ), Decimal ('0' ))
169
169
assert_equal (self .nodes [1 ].getbalance (minconf = 1 ), Decimal ('0' ))
170
- # getunconfirmedbalance
171
- assert_equal (self .nodes [0 ].getunconfirmedbalance (), Decimal ('60' )) # output of node 1's spend
172
- assert_equal (self .nodes [1 ].getunconfirmedbalance (), Decimal ('30' ) - fee_node_1 ) # Doesn't include output of node 0's send since it was spent
173
170
174
171
test_balances (fee_node_1 = Decimal ('0.01' ))
175
172
You can’t perform that action at this time.
0 commit comments