mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +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);
|
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)
|
void DoPrivateSendMaintenance(CConnman& connman)
|
||||||
{
|
{
|
||||||
privateSendClientQueueManager.DoMaintenance();
|
privateSendClientQueueManager.DoMaintenance();
|
||||||
|
@ -298,6 +298,8 @@ public:
|
|||||||
fPrivateSendMultiSession(DEFAULT_PRIVATESEND_MULTISESSION)
|
fPrivateSendMultiSession(DEFAULT_PRIVATESEND_MULTISESSION)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GetJsonInfo(UniValue& obj) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
void DoPrivateSendMaintenance(CConnman& connman);
|
void DoPrivateSendMaintenance(CConnman& connman);
|
||||||
|
@ -136,14 +136,9 @@ UniValue getprivatesendinfo(const JSONRPCRequest& request)
|
|||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
|
|
||||||
obj.pushKV("enabled", privateSendClientOptions.fEnablePrivateSend);
|
privateSendClientOptions.GetJsonInfo(obj);
|
||||||
obj.pushKV("multisession", privateSendClientOptions.fPrivateSendMultiSession);
|
|
||||||
obj.pushKV("max_sessions", privateSendClientOptions.nPrivateSendSessions);
|
obj.pushKV("queue_size", privateSendClientQueueManager.GetQueueSize());
|
||||||
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());
|
|
||||||
|
|
||||||
CWallet* const pwallet = GetWalletForJSONRPCRequest(request);
|
CWallet* const pwallet = GetWalletForJSONRPCRequest(request);
|
||||||
if (!pwallet) {
|
if (!pwallet) {
|
||||||
|
Loading…
Reference in New Issue
Block a user