diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-12-21 17:42:28 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-01-25 20:43:37 +0100 |
commit | 5d59ae0ba88849b1eb0d7350871bc19fcd5ef601 (patch) | |
tree | f6cab7706d00f3e91a32b1b6c185760e62f58108 /src/net_processing.cpp | |
parent | eaeeb88768db529b5241ccd42f1e87579908b4df (diff) |
Remove/inline ReadRawBlockFromDisk(block_data, pindex, message_start)
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index bd51b0f785..3cebca1a77 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1880,7 +1880,7 @@ void PeerManagerImpl::ProcessGetBlockData(CNode& pfrom, Peer& peer, const CInv& // Fast-path: in this case it is possible to serve the block directly from disk, // as the network format matches the format on disk std::vector<uint8_t> block_data; - if (!ReadRawBlockFromDisk(block_data, pindex, m_chainparams.MessageStart())) { + if (!ReadRawBlockFromDisk(block_data, pindex->GetBlockPos(), m_chainparams.MessageStart())) { assert(!"cannot load block from disk"); } m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::BLOCK, Span{block_data})); |