MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetRawHeaderByHash

Method GetRawHeaderByHash

core/ledger/ledger.go:109–111  ·  view source on GitHub ↗
(blockHash common.Uint256)

Source from the content-addressed store, hash-verified

107 return self.ldgStore.GetHeaderByHash(blockHash)
108}
109func (self *Ledger) GetRawHeaderByHash(blockHash common.Uint256) (*types.RawHeader, error) {
110 return self.ldgStore.GetRawHeaderByHash(blockHash)
111}
112
113func (self *Ledger) GetBlockHash(height uint32) common.Uint256 {
114 return self.ldgStore.GetBlockHash(height)

Callers

nothing calls this directly

Calls 1

GetRawHeaderByHashMethod · 0.65

Tested by

no test coverage detected