diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-05 13:49:08 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | f25aef2df9d8fee03569bdd47a923a24ed311299 (patch) | |
tree | 0f4327925c48dbff3e4f2cc3c202bbb7231e4208 /core/types | |
parent | 0542a6a1b13c3c1235f68a2d0cca23976c241ca9 (diff) | |
download | go-tangerine-f25aef2df9d8fee03569bdd47a923a24ed311299.tar.gz go-tangerine-f25aef2df9d8fee03569bdd47a923a24ed311299.tar.zst go-tangerine-f25aef2df9d8fee03569bdd47a923a24ed311299.zip |
core: validate roundHeight mapping in governance contract
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/block.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go index 6186c66bb..fefcbad83 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -310,6 +310,10 @@ func (b *Block) TxHash() common.Hash { return b.header.TxHash } func (b *Block) ReceiptHash() common.Hash { return b.header.ReceiptHash } func (b *Block) UncleHash() common.Hash { return b.header.UncleHash } func (b *Block) Extra() []byte { return common.CopyBytes(b.header.Extra) } +func (b *Block) Randomness() []byte { return common.CopyBytes(b.header.Randomness) } +func (b *Block) Reward() *big.Int { return new(big.Int).Set(b.header.Reward) } +func (b *Block) Round() uint64 { return b.header.Round } +func (b *Block) DexconMeta() []byte { return common.CopyBytes(b.header.DexconMeta) } func (b *Block) Header() *Header { return CopyHeader(b.header) } func (b *Block) RawHeader() *Header { return b.header } |