MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / setGenesis

Method setGenesis

sqlchain/runtime.go:139–147  ·  view source on GitHub ↗
(b *types.Block)

Source from the content-addressed store, hash-verified

137}
138
139func (r *runtime) setGenesis(b *types.Block) {
140 r.chainInitTime = b.Timestamp()
141 r.genesisHash = *b.BlockHash()
142 r.head = &state{
143 node: nil,
144 Head: *b.GenesisHash(),
145 Height: 0,
146 }
147}
148
149func (r *runtime) getMinValidHeight() int32 {
150 r.stateMutex.Lock()

Callers 2

NewChainWithContextFunction · 0.80
newRunTimeFunction · 0.80

Calls 3

GenesisHashMethod · 0.80
TimestampMethod · 0.45
BlockHashMethod · 0.45

Tested by

no test coverage detected