MCPcopy Create free account
hub / github.com/bcndev/bytecoin / get_header_data

Method get_header_data

src/Core/BlockChain.cpp:604–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604bool BlockChain::get_header_data(const Hash &bid, BinaryArray *block_data, Height hint) const {
605 auto key = HEADER_PREFIX + DB::to_binary_key(bid.data, sizeof(bid.data)) + HEADER_SUFFIX;
606 return m_db.get(key, *block_data);
607}
608
609api::BlockHeader BlockChain::read_header(const Hash &bid, Height hint) const {
610 api::BlockHeader result;

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected