mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
rpc: Pass mempool into MempoolToJSON
This commit is contained in:
parent
169dced9a4
commit
fa5dc3534b
7 changed files with 34 additions and 37 deletions
|
|
@ -300,7 +300,7 @@ static bool rest_mempool_info(HTTPRequest* req, const std::string& strURIPart)
|
|||
|
||||
switch (rf) {
|
||||
case RetFormat::JSON: {
|
||||
UniValue mempoolInfoObject = mempoolInfoToJSON();
|
||||
UniValue mempoolInfoObject = MempoolInfoToJSON(::mempool);
|
||||
|
||||
std::string strJSON = mempoolInfoObject.write() + "\n";
|
||||
req->WriteHeader("Content-Type", "application/json");
|
||||
|
|
@ -322,7 +322,7 @@ static bool rest_mempool_contents(HTTPRequest* req, const std::string& strURIPar
|
|||
|
||||
switch (rf) {
|
||||
case RetFormat::JSON: {
|
||||
UniValue mempoolObject = mempoolToJSON(true);
|
||||
UniValue mempoolObject = MempoolToJSON(::mempool, true);
|
||||
|
||||
std::string strJSON = mempoolObject.write() + "\n";
|
||||
req->WriteHeader("Content-Type", "application/json");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue