DecodeHexBlockHeader

Decode a hex-encoded serialized block header.

Synopsis

Declared in <core_io.h>

bool
DecodeHexBlockHeader(
    CBlockHeader& header,
    std::string const& hex_header);

Return Value

True if the header was decoded successfully.

Parameters

NameDescription
headerBlock header populated with the decoded data on success.
hex_headerHex string holding the serialized block header.