mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-27 22:34:18 +02:00
refactor: Make HexStr take a span
Make HexStr take a span of bytes, instead of an awkward pair of templated iterators.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user