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

Method Time

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

Source from the content-addressed store, hash-verified

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() }
434func (b *Block) SetTimestamp(t time.Time) { b.RefHeader().SetTimestamp(t) }
435func (b *Block) Impeachment() bool { return b.Header().Impeachment() }

Callers 4

TestBlockEncodingFunction · 0.95
makeHeaderFunction · 0.80
insertChainMethod · 0.80
NetworkTimeFunction · 0.80

Calls 1

SetMethod · 0.45

Tested by 1

TestBlockEncodingFunction · 0.76