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

Method SetTimestamp

types/block.go:434–434  ·  view source on GitHub ↗
(t time.Time)

Source from the content-addressed store, hash-verified

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() }
436
437func (b *Block) NumberU64() uint64 { return b.header.Number.Uint64() }

Callers 2

PrepareBlockMethod · 0.45

Calls 1

RefHeaderMethod · 0.95

Tested by

no test coverage detected