|
|
|
@ -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
|
|
|
|
|