aboutsummaryrefslogtreecommitdiff
path: root/src/rest.cpp
diff options
context:
space:
mode:
authorMax K <[email protected]>2019-07-14 19:35:30 +0200
committerGitHub <[email protected]>2019-07-14 19:35:30 +0200
commitcee13699a5676355487f8eb2d91985f63438eae4 (patch)
treecf12be6180f950a25ee2ee7f3f2126542835d6e3 /src/rest.cpp
parentCorrect build and test net seed (diff)
parentHandle legacy v2 block at #66064 (diff)
downloaddiscoin-1.17-dev.tar.xz
discoin-1.17-dev.zip
Merge pull request #1546 from rnicoll/1.17-auxpow1.17-dev
1.17 AuxPoW support
Diffstat (limited to 'src/rest.cpp')
-rw-r--r--src/rest.cpp3
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) {