(b *types.Block)
| 137 | } |
| 138 | |
| 139 | func (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 | |
| 149 | func (r *runtime) getMinValidHeight() int32 { |
| 150 | r.stateMutex.Lock() |
no test coverage detected