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

Method GasUsed

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

Source from the content-addressed store, hash-verified

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) }
433func (b *Block) Timestamp() time.Time { return b.Header().Timestamp() }

Callers 4

TestBlockEncodingFunction · 0.95
ValidateStateMethod · 0.80
CalcGasLimitFunction · 0.80
insertChainMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBlockEncodingFunction · 0.76