Skip to content

Commit

Permalink
Use proper ReadBlockFromDisk
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Nov 18, 2024
1 parent 5495c0f commit f60c0b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/zmq/zmqpublishnotifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,11 @@ bool CZMQPublishRawChainLockNotifier::NotifyChainLock(const CBlockIndex *pindex,
{
LogPrint(BCLog::ZMQ, "zmq: Publish rawchainlock %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, consensusParams))
if(!ReadBlockFromDisk(block, pindex))
{
zmqError("Can't read block from disk");
return false;
Expand All @@ -223,12 +222,11 @@ bool CZMQPublishRawChainLockSigNotifier::NotifyChainLock(const CBlockIndex *pind
{
LogPrint(BCLog::ZMQ, "zmq: Publish rawchainlocksig %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, consensusParams))
if(!ReadBlockFromDisk(block, pindex))
{
zmqError("Can't read block from disk");
return false;
Expand Down

0 comments on commit f60c0b0

Please sign in to comment.