| 27 | |
| 28 | template <typename Stream> |
| 29 | inline void Serialize(Stream& s) const { |
| 30 | s << *(CScriptBase*)(&challenge); |
| 31 | if (!(s.GetType() & SER_GETHASH)) |
| 32 | s << *(CScriptBase*)(&solution); |
| 33 | } |
| 34 | |
| 35 | template <typename Stream> |
| 36 | inline void Unserialize(Stream& s) const { |