diff --git a/src/Makefile.am b/src/Makefile.am --- a/src/Makefile.am +++ b/src/Makefile.am @@ -177,7 +177,6 @@ rpc/protocol.h \ rpc/rawtransaction.h \ rpc/server.h \ - rpc/tojson.h \ rpc/register.h \ rpc/util.h \ rwcollection.h \ diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -7,6 +7,7 @@ #include +class CBlock; class CBlockIndex; class Config; class JSONRPCRequest; @@ -15,4 +16,9 @@ double GetDifficulty(const CBlockIndex *blockindex); +UniValue blockToJSON(const Config &config, const CBlock &block, + const CBlockIndex *blockindex, bool txDetails = false); + +UniValue blockheaderToJSON(const CBlockIndex *blockindex); + #endif // BITCOIN_RPCBLOCKCHAIN_H diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -18,7 +18,6 @@ #include #include #include -#include #include