mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Add CPrivateSendClientOptions::GetJsonInfo()
This commit is contained in:
parent
4ac00e5589
commit
50b09b88e4
@ -1843,6 +1843,18 @@ void CPrivateSendClientManager::GetJsonInfo(UniValue& obj) const
|
||||
obj.pushKV("sessions", arrSessions);
|
||||
}
|
||||
|
||||
void CPrivateSendClientOptions::GetJsonInfo(UniValue& obj) const
|
||||
{
|
||||
assert(obj.isObject());
|
||||
obj.pushKV("enabled", privateSendClientOptions.fEnablePrivateSend);
|
||||
obj.pushKV("multisession", privateSendClientOptions.fPrivateSendMultiSession);
|
||||
obj.pushKV("max_sessions", privateSendClientOptions.nPrivateSendSessions);
|
||||
obj.pushKV("max_rounds", privateSendClientOptions.nPrivateSendRounds);
|
||||
obj.pushKV("max_amount", privateSendClientOptions.nPrivateSendAmount);
|
||||
obj.pushKV("denoms_goal", privateSendClientOptions.nPrivateSendDenomsGoal);
|
||||
obj.pushKV("denoms_hardcap", privateSendClientOptions.nPrivateSendDenomsHardCap);
|
||||
}
|
||||
|
||||
void DoPrivateSendMaintenance(CConnman& connman)
|
||||
{
|
||||
privateSendClientQueueManager.DoMaintenance();
|
||||
|
@ -298,6 +298,8 @@ public:
|
||||
fPrivateSendMultiSession(DEFAULT_PRIVATESEND_MULTISESSION)
|
||||
{
|
||||
}
|
||||
|
||||
void GetJsonInfo(UniValue& obj) const;
|
||||
};
|
||||
|
||||
void DoPrivateSendMaintenance(CConnman& connman);
|
||||
|
@ -136,14 +136,9 @@ UniValue getprivatesendinfo(const JSONRPCRequest& request)
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
|
||||
obj.pushKV("enabled", privateSendClientOptions.fEnablePrivateSend);
|
||||
obj.pushKV("multisession", privateSendClientOptions.fPrivateSendMultiSession);
|
||||
obj.pushKV("max_sessions", privateSendClientOptions.nPrivateSendSessions);
|
||||
obj.pushKV("max_rounds", privateSendClientOptions.nPrivateSendRounds);
|
||||
obj.pushKV("max_amount", privateSendClientOptions.nPrivateSendAmount);
|
||||
obj.pushKV("denoms_goal", privateSendClientOptions.nPrivateSendDenomsGoal);
|
||||
obj.pushKV("denoms_hardcap", privateSendClientOptions.nPrivateSendDenomsHardCap);
|
||||
obj.pushKV("queue_size", privateSendClientQueueManager.GetQueueSize());
|
||||
privateSendClientOptions.GetJsonInfo(obj);
|
||||
|
||||
obj.pushKV("queue_size", privateSendClientQueueManager.GetQueueSize());
|
||||
|
||||
CWallet* const pwallet = GetWalletForJSONRPCRequest(request);
|
||||
if (!pwallet) {
|
||||
|
Loading…
Reference in New Issue
Block a user