MCPcopy Create free account
hub / github.com/LUX-Core/lux / getpoolinfo

Function getpoolinfo

src/rpcdarksend.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108
109UniValue getpoolinfo(const UniValue& params, bool fHelp) {
110 if (fHelp || params.size() != 0)
111 throw runtime_error(
112 "getpoolinfo\n"
113 "Returns an object containing anonymous pool-related information.");
114
115 UniValue obj(UniValue::VOBJ);
116 obj.push_back(Pair("current_masternode", GetCurrentMasterNode()));
117 obj.push_back(Pair("state", darkSendPool.GetState()));
118 obj.push_back(Pair("entries", darkSendPool.GetEntriesCount()));
119 obj.push_back(Pair("entries_accepted", darkSendPool.GetCountEntriesAccepted()));
120 return obj;
121}
122
123
124UniValue masternode(const UniValue& params, bool fHelp) {

Callers

nothing calls this directly

Calls 7

PairFunction · 0.85
GetCurrentMasterNodeFunction · 0.85
GetStateMethod · 0.80
GetEntriesCountMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected