|
|
@ -9,6 +9,7 @@ |
|
|
|
#include "primitives/transaction.h" |
|
|
|
#include "primitives/transaction.h" |
|
|
|
#include "validation.h" |
|
|
|
#include "validation.h" |
|
|
|
#include "httpserver.h" |
|
|
|
#include "httpserver.h" |
|
|
|
|
|
|
|
#include "rpc/blockchain.h" |
|
|
|
#include "rpc/server.h" |
|
|
|
#include "rpc/server.h" |
|
|
|
#include "streams.h" |
|
|
|
#include "streams.h" |
|
|
|
#include "sync.h" |
|
|
|
#include "sync.h" |
|
|
@ -55,12 +56,9 @@ struct CCoin { |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry); |
|
|
|
/* Defined in rawtransaction.cpp */ |
|
|
|
extern UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails = false); |
|
|
|
void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry); |
|
|
|
extern UniValue mempoolInfoToJSON(); |
|
|
|
void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex); |
|
|
|
extern UniValue mempoolToJSON(bool fVerbose = false); |
|
|
|
|
|
|
|
extern void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex); |
|
|
|
|
|
|
|
extern UniValue blockheaderToJSON(const CBlockIndex* blockindex); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message) |
|
|
|
static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message) |
|
|
|
{ |
|
|
|
{ |
|
|
|