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 b81a6f9c5..56ce83098 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -157,9 +157,10 @@ static bool rest_headers(HTTPRequest* req, } } + const CChainParams& chainparams = Params(); CDataStream ssHeader(SER_NETWORK, PROTOCOL_VERSION); for (const CBlockIndex *pindex : headers) { - ssHeader << pindex->GetBlockHeader(); + ssHeader << pindex->GetBlockHeader(chainparams.GetConsensus()); } switch (rf) { |