aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/block.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-17 06:10:26 +0800
committerobscuren <geffobscura@gmail.com>2015-03-17 06:10:26 +0800
commit843db4978e876674ca111706880a58c84202880d (patch)
tree6d565f14ae8ed2524c73e478e301891c4d86436e /core/types/block.go
parent4e181c5764b78193705f91d3220710bb63b8962f (diff)
downloaddexon-843db4978e876674ca111706880a58c84202880d.tar
dexon-843db4978e876674ca111706880a58c84202880d.tar.gz
dexon-843db4978e876674ca111706880a58c84202880d.tar.bz2
dexon-843db4978e876674ca111706880a58c84202880d.tar.lz
dexon-843db4978e876674ca111706880a58c84202880d.tar.xz
dexon-843db4978e876674ca111706880a58c84202880d.tar.zst
dexon-843db4978e876674ca111706880a58c84202880d.zip
updated blockpool
Diffstat (limited to 'core/types/block.go')
-rw-r--r--core/types/block.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 80fc238aa..aca23aa04 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -106,14 +106,14 @@ func NewBlock(parentHash common.Hash, coinbase common.Address, root common.Hash,
GasUsed: new(big.Int),
GasLimit: new(big.Int),
}
- header.setNonce(nonce)
+ header.SetNonce(nonce)
block := &Block{header: header, Reward: new(big.Int)}
return block
}
-func (self *Header) setNonce(nonce uint64) {
+func (self *Header) SetNonce(nonce uint64) {
binary.BigEndian.PutUint64(self.Nonce[:], nonce)
}
@@ -203,7 +203,7 @@ func (self *Block) Nonce() uint64 {
return binary.BigEndian.Uint64(self.header.Nonce[:])
}
func (self *Block) SetNonce(nonce uint64) {
- self.header.setNonce(nonce)
+ self.header.SetNonce(nonce)
}
func (self *Block) Bloom() Bloom { return self.header.Bloom }