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

Function CurrentBlockHash

http/base/actor/ledger.go:54–56  ·  view source on GitHub ↗

CurrentBlockHash from ledger

()

Source from the content-addressed store, hash-verified

52
53//CurrentBlockHash from ledger
54func CurrentBlockHash() common.Uint256 {
55 return ledger.DefLedger.GetCurrentBlockHash()
56}
57
58//GetBlockFromStore from ledger
59func GetBlockFromStore(hash common.Uint256) (*types.Block, error) {

Callers

nothing calls this directly

Calls 1

GetCurrentBlockHashMethod · 0.65

Tested by

no test coverage detected