mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Merge #18459: rpc: remove unused getbalances() code
6e0d82c55b
rpc: remove unused getbalances() code (Jon Atack) Pull request description: This line from999931cf8f
appears to be extraneous and replaced 2 lines after by `UniValue balances{UniValue::VOBJ};`. ACKs for top commit: Empact: ACK6e0d82c55b
hebasto: ACK6e0d82c55b
, the `obj` local variable is not used until the end of the scope. Tree-SHA512: a220ca9cda091e78144d9b7fbe4bf90e8338d6e8c8dc7bea27a8e62f3a8ac1d983ad12a48a0a3366b2d8b9586878dfc69c1ec34bf846b34c91e42cda48a59850
This commit is contained in:
commit
27a82d347e
1 changed files with 0 additions and 2 deletions
|
@ -2390,8 +2390,6 @@ static UniValue getbalances(const JSONRPCRequest& request)
|
|||
auto locked_chain = wallet.chain().lock();
|
||||
LOCK(wallet.cs_wallet);
|
||||
|
||||
UniValue obj(UniValue::VOBJ);
|
||||
|
||||
const auto bal = wallet.GetBalance();
|
||||
UniValue balances{UniValue::VOBJ};
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue