mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Do not clear the object pased into CPrivateSendClient*::GetJsonInfo()
Just verify that it's of a proper type instead
This commit is contained in:
parent
a7e0957c82
commit
4ac00e5589
@ -1814,8 +1814,7 @@ void CPrivateSendClientManager::DoMaintenance(CConnman& connman)
|
||||
|
||||
void CPrivateSendClientSession::GetJsonInfo(UniValue& obj) const
|
||||
{
|
||||
obj.clear();
|
||||
obj.setObject();
|
||||
assert(obj.isObject());
|
||||
if (mixingMasternode != nullptr) {
|
||||
assert(mixingMasternode->pdmnState);
|
||||
obj.pushKV("protxhash", mixingMasternode->proTxHash.ToString());
|
||||
@ -1830,8 +1829,7 @@ void CPrivateSendClientSession::GetJsonInfo(UniValue& obj) const
|
||||
void CPrivateSendClientManager::GetJsonInfo(UniValue& obj) const
|
||||
{
|
||||
LOCK(cs_deqsessions);
|
||||
obj.clear();
|
||||
obj.setObject();
|
||||
assert(obj.isObject());
|
||||
obj.pushKV("running", IsMixing());
|
||||
|
||||
UniValue arrSessions(UniValue::VARR);
|
||||
|
Loading…
Reference in New Issue
Block a user