MCPcopy Create free account
hub / github.com/CPChain/chain / GasLimit

Method GasLimit

types/block.go:429–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428func (b *Block) Number() *big.Int { return new(big.Int).Set(b.header.Number) }
429func (b *Block) GasLimit() uint64 { return b.header.GasLimit }
430func (b *Block) GasUsed() uint64 { return b.header.GasUsed }
431
432func (b *Block) Time() *big.Int { return new(big.Int).Set(b.header.Time) }

Callers 4

TestBlockEncodingFunction · 0.95
EstimateGasMethod · 0.45
EstimateGasMethod · 0.45
RunMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestBlockEncodingFunction · 0.76