| 107 | |
| 108 | |
| 109 | UniValue 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 | |
| 124 | UniValue masternode(const UniValue& params, bool fHelp) { |
nothing calls this directly
no test coverage detected