aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-06-14 19:48:30 -0500
committerBen Woosley <ben.woosley@gmail.com>2018-09-11 00:58:13 -0400
commit893628be0166b4096b6e52f516e0f65bb63a75a2 (patch)
tree59b7512c8f429312dd137429251c0df9f89942a4 /src/validation.cpp
parentda74db0940720407fafaf3582bbaf9c81a4d3b4d (diff)
Drop minor GetSerializeSize template
Now that `GetType()` is not propagated, the benefits are not worth the code.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 088dbf30fc..a1d0b3d046 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -1060,7 +1060,7 @@ static bool WriteBlockToDisk(const CBlock& block, CDiskBlockPos& pos, const CMes
return error("WriteBlockToDisk: OpenBlockFile failed");
// Write index header
- unsigned int nSize = GetSerializeSize(fileout, block);
+ unsigned int nSize = GetSerializeSize(block, fileout.GetVersion());
fileout << messageStart << nSize;
// Write block
@@ -1470,7 +1470,7 @@ bool UndoWriteToDisk(const CBlockUndo& blockundo, CDiskBlockPos& pos, const uint
return error("%s: OpenUndoFile failed", __func__);
// Write index header
- unsigned int nSize = GetSerializeSize(fileout, blockundo);
+ unsigned int nSize = GetSerializeSize(blockundo, fileout.GetVersion());
fileout << messageStart << nSize;
// Write undo data