aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-03-27 16:12:02 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-29 09:56:47 +0200
commitf885b670290d39e697995fd2d35dc36edc104011 (patch)
treed9e10fce74ee4be50176b77be86b00f9df092484 /src/rest.cpp
parent8d8f28dd52fc9f78f57842f94842c8433f1811be (diff)
downloadbitcoin-f885b670290d39e697995fd2d35dc36edc104011.tar.xz
refactor: Make rest.cpp dependency on `*toJSON` in `blockchain.cpp` explicit
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rest.cpp b/src/rest.cpp
index 54eefcafe3..9dcaf269d6 100644
--- a/src/rest.cpp
+++ b/src/rest.cpp
@@ -9,6 +9,7 @@
#include "primitives/transaction.h"
#include "validation.h"
#include "httpserver.h"
+#include "rpc/blockchain.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
@@ -55,12 +56,9 @@ struct CCoin {
}
};
-extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
-extern UniValue blockToJSON(const CBlock& block, const CBlockIndex* blockindex, bool txDetails = false);
-extern UniValue mempoolInfoToJSON();
-extern UniValue mempoolToJSON(bool fVerbose = false);
-extern void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
-extern UniValue blockheaderToJSON(const CBlockIndex* blockindex);
+/* Defined in rawtransaction.cpp */
+void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
+void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
static bool RESTERR(HTTPRequest* req, enum HTTPStatusCode status, std::string message)
{