mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge #18459: rpc: remove unused getbalances() code
6e0d82c55brpc: remove unused getbalances() code (Jon Atack) Pull request description: This line from999931cf8fappears to be extraneous and replaced 2 lines after by `UniValue balances{UniValue::VOBJ};`. ACKs for top commit: Empact: ACK https://github.com/bitcoin/bitcoin/pull/18459/commits/6e0d82c55bf4a9aae98c47b7cd00b2828b5dd0ee 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
Add a link
Reference in a new issue