HomePhabricator

cli: use GetWalletBalances() functionality for -getinfo

Description

cli: use GetWalletBalances() functionality for -getinfo

Summary:
and replace GetBoolArg with IsArgSet as we only want
to know if the arg is passed; we do not need the value.

This is a backport of Core PR18594 [4/6]
https://github.com/bitcoin/bitcoin/pull/18594/commits/afce85eb994384246e455b766549c3206cb059e0

Depends on D9239

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9240

Details

Provenance
Jon Atack <jon@atack.com>Authored on May 3 2020, 09:10
PiRKCommitted on Feb 18 2021, 13:00
PiRKPushed on Feb 18 2021, 13:00
Reviewer
Restricted Project
Differential Revision
D9240: cli: use GetWalletBalances() functionality for -getinfo
Parents
rABC01f2e8d87568: cli: create GetWalletBalances() to fetch multiwallet balances
Branches
Unknown
Tags
Unknown