aboutsummaryrefslogtreecommitdiffstats
path: root/core/types
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-05 13:49:08 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commitc66af2d7f54b14e856c3d3b6a98a961daf617216 (patch)
tree9f9ceb4abf1ead399de23abe9efe7f8ebbfe510b /core/types
parenta2daec1ea649de60557c382bb3756ddf2466b2b2 (diff)
downloaddexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar.gz
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar.bz2
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar.lz
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar.xz
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.tar.zst
dexon-c66af2d7f54b14e856c3d3b6a98a961daf617216.zip
core: validate roundHeight mapping in governance contract
Diffstat (limited to 'core/types')
-rw-r--r--core/types/block.go4
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 }