File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -248,18 +248,14 @@ bool CZMQPublishRawBlockNotifier::NotifyBlock(const CBlockIndex *pindex)
248
248
249
249
const Consensus::Params& consensusParams = Params ().GetConsensus ();
250
250
CDataStream ss (SER_NETWORK, PROTOCOL_VERSION | RPCSerializationFlags ());
251
- {
252
- LOCK (cs_main);
253
- CBlock block;
254
- if (!ReadBlockFromDisk (block, pindex, consensusParams))
255
- {
256
- zmqError (" Can't read block from disk" );
257
- return false ;
258
- }
259
-
260
- ss << block;
251
+ CBlock block;
252
+ if (!ReadBlockFromDisk (block, pindex, consensusParams)) {
253
+ zmqError (" Can't read block from disk" );
254
+ return false ;
261
255
}
262
256
257
+ ss << block;
258
+
263
259
return SendZmqMessage (MSG_RAWBLOCK, &(*ss.begin ()), ss.size ());
264
260
}
265
261
You can’t perform that action at this time.
0 commit comments