diff options
author | Andrew Toth <andrewstoth@gmail.com> | 2024-03-12 12:46:46 -0400 |
---|---|---|
committer | Andrew Toth <andrewstoth@gmail.com> | 2024-03-12 12:46:46 -0400 |
commit | 38265cc14e7d646bf27882329d374d42167eb49f (patch) | |
tree | 45d8c2c7f8743a1b2fe21f9bb9b57da026b2a477 /src/init.cpp | |
parent | da338aada7943c392013c36c542af621fbc6edd1 (diff) |
zmq: read raw block with ReadRawBlockFromDisk
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index b9a0bb732a..635fbd7759 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1452,9 +1452,9 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) #if ENABLE_ZMQ g_zmq_notification_interface = CZMQNotificationInterface::Create( - [&chainman = node.chainman](CBlock& block, const CBlockIndex& index) { + [&chainman = node.chainman](std::vector<uint8_t>& block, const CBlockIndex& index) { assert(chainman); - return chainman->m_blockman.ReadBlockFromDisk(block, index); + return chainman->m_blockman.ReadRawBlockFromDisk(block, WITH_LOCK(cs_main, return index.GetBlockPos())); }); if (g_zmq_notification_interface) { |