diff options
| author | Jorge Timón <[email protected]> | 2015-04-17 14:19:21 +0200 |
|---|---|---|
| committer | Jorge Timón <[email protected]> | 2015-10-30 14:07:30 +0100 |
| commit | 87cbdb8b41eee4067023cfa0d9d68722da74a5eb (patch) | |
| tree | 2da5f329b57e2b9624db73407ec70fca187f0888 /src/zmq | |
| parent | Merge pull request #6863 (diff) | |
| download | discoin-87cbdb8b41eee4067023cfa0d9d68722da74a5eb.tar.xz discoin-87cbdb8b41eee4067023cfa0d9d68722da74a5eb.zip | |
Globals: Explicit Consensus::Params arg for main:
-CheckBlockIndex
-DisconnectTip
-GetTransaction
-InvalidateBlock
-ProcessGetData
-ReadBlockFromDisk
Diffstat (limited to 'src/zmq')
| -rw-r--r-- | src/zmq/zmqpublishnotifier.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp index 4c3eb8f2d..ac788843e 100644 --- a/src/zmq/zmqpublishnotifier.cpp +++ b/src/zmq/zmqpublishnotifier.cpp @@ -2,6 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include "chainparams.h" #include "zmqpublishnotifier.h" #include "main.h" #include "util.h" @@ -142,11 +143,12 @@ bool CZMQPublishRawBlockNotifier::NotifyBlock(const CBlockIndex *pindex) { LogPrint("zmq", "Publish raw block %s\n", pindex->GetBlockHash().GetHex()); + const Consensus::Params& consensusParams = Params().GetConsensus(); CDataStream ss(SER_NETWORK, PROTOCOL_VERSION); { LOCK(cs_main); CBlock block; - if(!ReadBlockFromDisk(block, pindex)) + if(!ReadBlockFromDisk(block, pindex, consensusParams)) { zmqError("Can't read block from disk"); return false; |