diff options
Diffstat (limited to 'core/types/block.go')
-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 } |