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

Method Timestamp

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

Source from the content-addressed store, hash-verified

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() }
436

Callers 12

mainFunction · 0.45
PrepareBlockMethod · 0.45
SealMethod · 0.45
CreateImpeachBlockMethod · 0.45
CreateImpeachBlockAtMethod · 0.45
verifyBasicMethod · 0.45
handlePreprepareMsgMethod · 0.45
tryToImpeachMethod · 0.45
tryToImpeachFailbackMethod · 0.45
HandleMethod · 0.45
mineMethod · 0.45

Calls 1

HeaderMethod · 0.95

Tested by

no test coverage detected