diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-06-24 17:26:47 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-08-06 19:41:43 +0200 |
commit | 0a8aa626dd69a357e1b798b07b64cf4177a464a3 (patch) | |
tree | 44736ce734e8b6b2259becff3962ee3290f7969d /src/validation.cpp | |
parent | 34eb2362581d4d8f0bfd3baa12ba750afaf85c62 (diff) |
refactor: Make HexStr take a span
Make HexStr take a span of bytes, instead of an awkward pair of
templated iterators.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 81af972777..82032611ce 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1198,8 +1198,8 @@ bool ReadRawBlockFromDisk(std::vector<uint8_t>& block, const FlatFilePos& pos, c if (memcmp(blk_start, message_start, CMessageHeader::MESSAGE_START_SIZE)) { return error("%s: Block magic mismatch for %s: %s versus expected %s", __func__, pos.ToString(), - HexStr(blk_start, blk_start + CMessageHeader::MESSAGE_START_SIZE), - HexStr(message_start, message_start + CMessageHeader::MESSAGE_START_SIZE)); + HexStr(blk_start), + HexStr(message_start)); } if (blk_size > MAX_SIZE) { |