diff options
Diffstat (limited to 'src/rest.cpp')
| -rw-r--r-- | src/rest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rest.cpp b/src/rest.cpp index 54eefcafe..e9d0a8cef 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -160,8 +160,9 @@ static bool rest_headers(HTTPRequest* req, } CDataStream ssHeader(SER_NETWORK, PROTOCOL_VERSION); + const CChainParams& chainparams = Params(); BOOST_FOREACH(const CBlockIndex *pindex, headers) { - ssHeader << pindex->GetBlockHeader(); + ssHeader << pindex->GetBlockHeader(chainparams.GetConsensus()); } switch (rf) { |