| 345 | int readData(Span<const uint8_t> msg_bytes); |
| 346 | |
| 347 | void Reset() { |
| 348 | vRecv.clear(); |
| 349 | hdrbuf.clear(); |
| 350 | hdrbuf.resize(24); |
| 351 | in_data = false; |
| 352 | nHdrPos = 0; |
| 353 | nDataPos = 0; |
| 354 | data_hash.SetNull(); |
| 355 | hasher.Reset(); |
| 356 | } |
| 357 | |
| 358 | public: |
| 359 | V1TransportDeserializer(const CChainParams& chain_params, const NodeId node_id, int nTypeIn, int nVersionIn) |