aboutsummaryrefslogtreecommitdiffstats
path: root/core/types
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-30 20:32:01 +0800
committerobscuren <geffobscura@gmail.com>2014-12-30 20:32:01 +0800
commit2f8a45cd8b2f565359f2c955145047acca2a2433 (patch)
treec801d7d1a9260a222a5c0bd9d5aa8cd82deaea9e /core/types
parentce68ac695981523aca5cf83e051597f46070547d (diff)
downloaddexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar.gz
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar.bz2
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar.lz
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar.xz
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.tar.zst
dexon-2f8a45cd8b2f565359f2c955145047acca2a2433.zip
Fixed chain test & added new chain
Diffstat (limited to 'core/types')
-rw-r--r--core/types/block.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/types/block.go b/core/types/block.go
index 054767d67..7b4695f73 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -199,6 +199,7 @@ func (self *Block) Hash() []byte { return self.header.Hash() }
func (self *Block) Trie() *ptrie.Trie { return ptrie.New(self.header.Root, ethutil.Config.Db) }
func (self *Block) State() *state.StateDB { return state.New(self.Trie()) }
func (self *Block) Size() ethutil.StorageSize { return ethutil.StorageSize(len(ethutil.Encode(self))) }
+func (self *Block) SetRoot(root []byte) { self.header.Root = root }
// Implement block.Pow
func (self *Block) Difficulty() *big.Int { return self.header.Difficulty }