MCPcopy Create free account
hub / github.com/chain/txvm / Height

Method Height

protocol/protocol.go:100–100  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

98// from storage and persist validated data.
99type Store interface {
100 Height(context.Context) (uint64, error)
101 GetBlock(context.Context, uint64) (*bc.Block, error)
102 LatestSnapshot(context.Context) (*state.Snapshot, error)
103

Callers 10

NewChainFunction · 0.65
setStateMethod · 0.65
RecoverMethod · 0.65
TestPersistSnapshotFunction · 0.65
CommitAppliedBlockMethod · 0.65
CommitBlockMethod · 0.65
finalizeCommitStateMethod · 0.65
TestHeaderAccessorsFunction · 0.65

Implementers 1

MemStoreprotocol/prottest/memstore/memstore.go

Calls

no outgoing calls

Tested by 4

TestPersistSnapshotFunction · 0.52
TestHeaderAccessorsFunction · 0.52