File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 131
131
// primary actions
132
132
SER_NETWORK = (1 << 0 ),
133
133
SER_DISK = (1 << 1 ),
134
- SER_GETHASH = (1 << 2 ),
135
134
};
136
135
137
136
/* *
Original file line number Diff line number Diff line change @@ -123,20 +123,14 @@ class CKeyPool
123
123
template <typename Stream>
124
124
void Serialize (Stream& s) const
125
125
{
126
- int nVersion = s.GetVersion ();
127
- if (!(s.GetType () & SER_GETHASH)) {
128
- s << nVersion;
129
- }
126
+ s << int {259900 }; // Unused field, writes the highest client version ever written
130
127
s << nTime << vchPubKey << fInternal << m_pre_split;
131
128
}
132
129
133
130
template <typename Stream>
134
131
void Unserialize (Stream& s)
135
132
{
136
- int nVersion = s.GetVersion ();
137
- if (!(s.GetType () & SER_GETHASH)) {
138
- s >> nVersion;
139
- }
133
+ s >> int {}; // Discard unused field
140
134
s >> nTime >> vchPubKey;
141
135
try {
142
136
s >> fInternal ;
You can’t perform that action at this time.
0 commit comments