DecodeHexBlk

Decode a hex-encoded serialized block.

Synopsis

Declared in <core_io.h>

[[nodiscard]]
bool
DecodeHexBlk(
    CBlock& block,
    std::string const& strHexBlk);

Return Value

True if the block was decoded successfully.

NOTE

The return value should not be discarded.

Parameters

NameDescription
blockBlock populated with the decoded data on success.
strHexBlkHex string holding the serialized block.