mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge #9039: Various serialization simplifcations and optimizations
d59a518Use fixed preallocation instead of costly GetSerializeSize (Pieter Wuille)25a211aAdd optimized CSizeComputer serializers (Pieter Wuille)a2929a2Make CSerAction's ForRead() constexpr (Pieter Wuille)a603925Avoid -Wshadow errors (Pieter Wuille)5284721Get rid of nType and nVersion (Pieter Wuille)657e05aMake GetSerializeSize a wrapper on top of CSizeComputer (Pieter Wuille)fad9b66Make nType and nVersion private and sometimes const (Pieter Wuille)c2c5d42Make streams' read and write return void (Pieter Wuille)50e8a9cRemove unused ReadVersion and WriteVersion (Pieter Wuille)
This commit is contained in:
@@ -131,7 +131,7 @@ ReadStatus PartiallyDownloadedBlock::InitData(const CBlockHeaderAndShortTxIDs& c
|
||||
break;
|
||||
}
|
||||
|
||||
LogPrint("cmpctblock", "Initialized PartiallyDownloadedBlock for block %s using a cmpctblock of size %lu\n", cmpctblock.header.GetHash().ToString(), cmpctblock.GetSerializeSize(SER_NETWORK, PROTOCOL_VERSION));
|
||||
LogPrint("cmpctblock", "Initialized PartiallyDownloadedBlock for block %s using a cmpctblock of size %lu\n", cmpctblock.header.GetHash().ToString(), GetSerializeSize(cmpctblock, SER_NETWORK, PROTOCOL_VERSION));
|
||||
|
||||
return READ_STATUS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user