Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115188
D9240.id27744.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
867 B
Subscribers
None
D9240.id27744.diff
View Options
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp
--- a/src/bitcoin-cli.cpp
+++ b/src/bitcoin-cli.cpp
@@ -664,9 +664,8 @@
}
std::unique_ptr<BaseRequestHandler> rh;
std::string method;
- if (gArgs.GetBoolArg("-getinfo", false)) {
+ if (gArgs.IsArgSet("-getinfo")) {
rh.reset(new GetinfoRequestHandler());
- method = "";
} else {
rh.reset(new DefaultRequestHandler());
if (args.size() < 1) {
@@ -709,6 +708,10 @@
}
}
} else {
+ if (gArgs.IsArgSet("-getinfo") && !gArgs.IsArgSet("-rpcwallet")) {
+ // fetch multiwallet balances and append to result
+ GetWalletBalances(result);
+ }
// Result
if (result.isNull()) {
strPrint = "";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 10:12 (7 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187308
Default Alt Text
D9240.id27744.diff (867 B)
Attached To
D9240: cli: use GetWalletBalances() functionality for -getinfo
Event Timeline
Log In to Comment