mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
Merge pull request #6257
ef2a3de
Add paytxfee to getwalletinfo, warnings to getnetworkinfo (Stephen)
This commit is contained in:
commit
5ebe7db6d0
@ -25,7 +25,7 @@ Run all possible tests with `qa/pull-tester/rpc-tests.sh -extended`.
|
|||||||
|
|
||||||
Possible options:
|
Possible options:
|
||||||
|
|
||||||
````
|
```
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--nocleanup Leave bitcoinds and test.* datadir on exit or error
|
--nocleanup Leave bitcoinds and test.* datadir on exit or error
|
||||||
--noshutdown Don't stop bitcoinds after the test execution
|
--noshutdown Don't stop bitcoinds after the test execution
|
||||||
|
@ -408,6 +408,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
|
|||||||
" }\n"
|
" }\n"
|
||||||
" ,...\n"
|
" ,...\n"
|
||||||
" ]\n"
|
" ]\n"
|
||||||
|
" \"warnings\": \"...\" (string) any network warnings (such as alert messages) \n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
+ HelpExampleCli("getnetworkinfo", "")
|
+ HelpExampleCli("getnetworkinfo", "")
|
||||||
@ -439,5 +440,6 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
obj.push_back(Pair("localaddresses", localAddresses));
|
obj.push_back(Pair("localaddresses", localAddresses));
|
||||||
|
obj.push_back(Pair("warnings", GetWarnings("statusbar")));
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
@ -2201,6 +2201,7 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp)
|
|||||||
" \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
|
" \"keypoololdest\": xxxxxx, (numeric) the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool\n"
|
||||||
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
|
" \"keypoolsize\": xxxx, (numeric) how many new keys are pre-generated\n"
|
||||||
" \"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
|
" \"unlocked_until\": ttt, (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked\n"
|
||||||
|
" \"paytxfee\": x.xxxx, (numeric) the transaction fee configuration, set in btc/kb\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
+ HelpExampleCli("getwalletinfo", "")
|
+ HelpExampleCli("getwalletinfo", "")
|
||||||
@ -2219,6 +2220,7 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp)
|
|||||||
obj.push_back(Pair("keypoolsize", (int)pwalletMain->GetKeyPoolSize()));
|
obj.push_back(Pair("keypoolsize", (int)pwalletMain->GetKeyPoolSize()));
|
||||||
if (pwalletMain->IsCrypted())
|
if (pwalletMain->IsCrypted())
|
||||||
obj.push_back(Pair("unlocked_until", nWalletUnlockTime));
|
obj.push_back(Pair("unlocked_until", nWalletUnlockTime));
|
||||||
|
obj.push_back(Pair("paytxfee", ValueFromAmount(payTxFee.GetFeePerK())));
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user