diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-11-01 22:46:17 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-11-16 11:14:13 +1000 |
commit | 1410d300df7e57a895f2697d9849a2201021c973 (patch) | |
tree | cf74f8da1b94c7237bca1162a903b004e2ef62a4 /src/node | |
parent | bf574a75016123309b894da895ab1c7a81731933 (diff) | |
download | bitcoin-1410d300df7e57a895f2697d9849a2201021c973.tar.xz |
serialize: Drop useless version param from GetSerializeSize()
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/blockstorage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp index 1108cc676b..c066d1c939 100644 --- a/src/node/blockstorage.cpp +++ b/src/node/blockstorage.cpp @@ -662,7 +662,7 @@ bool BlockManager::UndoWriteToDisk(const CBlockUndo& blockundo, FlatFilePos& pos } // Write index header - unsigned int nSize = GetSerializeSize(blockundo, CLIENT_VERSION); + unsigned int nSize = GetSerializeSize(blockundo); fileout << GetParams().MessageStart() << nSize; // Write undo data @@ -979,7 +979,7 @@ bool BlockManager::WriteUndoDataForBlock(const CBlockUndo& blockundo, BlockValid // Write undo information to disk if (block.GetUndoPos().IsNull()) { FlatFilePos _pos; - if (!FindUndoPos(state, block.nFile, _pos, ::GetSerializeSize(blockundo, CLIENT_VERSION) + 40)) { + if (!FindUndoPos(state, block.nFile, _pos, ::GetSerializeSize(blockundo) + 40)) { return error("ConnectBlock(): FindUndoPos failed"); } if (!UndoWriteToDisk(blockundo, _pos, block.pprev->GetBlockHash())) { |