mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 19:23:41 +02: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:
@@ -27,7 +27,7 @@ public:
|
||||
ADD_SERIALIZE_METHODS;
|
||||
|
||||
template <typename Stream, typename Operation>
|
||||
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
|
||||
inline void SerializationOp(Stream& s, Operation ser_action) {
|
||||
unsigned int nDate = date.toTime_t();
|
||||
|
||||
READWRITE(this->nVersion);
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
ADD_SERIALIZE_METHODS;
|
||||
|
||||
template <typename Stream, typename Operation>
|
||||
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) {
|
||||
inline void SerializationOp(Stream& s, Operation ser_action) {
|
||||
std::string sAddress = address.toStdString();
|
||||
std::string sLabel = label.toStdString();
|
||||
std::string sMessage = message.toStdString();
|
||||
|
||||
Reference in New Issue
Block a user