aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-14 01:15:23 +0800
committerobscuren <geffobscura@gmail.com>2015-02-14 01:15:23 +0800
commitce239333d529898edd8333637fd75c565e80a9ff (patch)
tree763f273cff09726bb16acf715d5ce0e2908e0b8f /core
parent0f3c25b26589f5667b618d6a91b73392d02ccd1e (diff)
downloaddexon-ce239333d529898edd8333637fd75c565e80a9ff.tar
dexon-ce239333d529898edd8333637fd75c565e80a9ff.tar.gz
dexon-ce239333d529898edd8333637fd75c565e80a9ff.tar.bz2
dexon-ce239333d529898edd8333637fd75c565e80a9ff.tar.lz
dexon-ce239333d529898edd8333637fd75c565e80a9ff.tar.xz
dexon-ce239333d529898edd8333637fd75c565e80a9ff.tar.zst
dexon-ce239333d529898edd8333637fd75c565e80a9ff.zip
Update balance label when mining
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go
index a334c512e..562a21239 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -6,6 +6,7 @@ import (
"math/big"
"sort"
"time"
+
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/rlp"
@@ -175,6 +176,7 @@ func (self *Block) RlpDataForStorage() interface{} {
// Header accessors (add as you need them)
func (self *Block) Number() *big.Int { return self.header.Number }
func (self *Block) NumberU64() uint64 { return self.header.Number.Uint64() }
+func (self *Block) Nonce() []byte { return self.header.Nonce }
func (self *Block) Bloom() []byte { return self.header.Bloom }
func (self *Block) Coinbase() []byte { return self.header.Coinbase }
func (self *Block) Time() int64 { return int64(self.header.Time) }