File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -532,9 +532,8 @@ static int CommandLineRPC(int argc, char *argv[])
532
532
}
533
533
std::unique_ptr<BaseRequestHandler> rh;
534
534
std::string method;
535
- if (gArgs .GetBoolArg (" -getinfo" , false )) {
535
+ if (gArgs .IsArgSet (" -getinfo" )) {
536
536
rh.reset (new GetinfoRequestHandler ());
537
- method = " " ;
538
537
} else {
539
538
rh.reset (new DefaultRequestHandler ());
540
539
if (args.size () < 1 ) {
@@ -567,6 +566,9 @@ static int CommandLineRPC(int argc, char *argv[])
567
566
}
568
567
}
569
568
} else {
569
+ if (gArgs .IsArgSet (" -getinfo" ) && !gArgs .IsArgSet (" -rpcwallet" )) {
570
+ GetWalletBalances (result); // fetch multiwallet balances and append to result
571
+ }
570
572
// Result
571
573
if (result.isNull ()) {
572
574
strPrint = " " ;
You can’t perform that action at this time.
0 commit comments