Use DataStream where possible

This commit is contained in:
MarcoFalke 2023-01-03 13:21:44 +01:00
parent fa9becfe1c
commit fa29e73cda
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
48 changed files with 144 additions and 151 deletions

View file

@ -207,7 +207,7 @@ bool DecodeHexBlockHeader(CBlockHeader& header, const std::string& hex_header)
if (!IsHex(hex_header)) return false;
const std::vector<unsigned char> header_data{ParseHex(hex_header)};
CDataStream ser_header(header_data, SER_NETWORK, PROTOCOL_VERSION);
DataStream ser_header{header_data};
try {
ser_header >> header;
} catch (const std::exception&) {