aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-03-20 18:20:29 +0800
committerMaran <maran.hidskes@gmail.com>2014-03-20 18:20:29 +0800
commitae837c4719855384921fcaadb1a575942dc9833d (patch)
tree3981f671c02ac6874c849cab7186cecf80d24e2f /ethchain/block.go
parent2be2fc79740d942f9690268352465d117930f081 (diff)
downloadgo-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar.gz
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar.bz2
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar.lz
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar.xz
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.tar.zst
go-tangerine-ae837c4719855384921fcaadb1a575942dc9833d.zip
More mining rework
Diffstat (limited to 'ethchain/block.go')
-rw-r--r--ethchain/block.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethchain/block.go b/ethchain/block.go
index 20af73ba2..d42aa7d83 100644
--- a/ethchain/block.go
+++ b/ethchain/block.go
@@ -304,6 +304,9 @@ func NewUncleBlockFromValue(header *ethutil.Value) *Block {
func (block *Block) String() string {
return fmt.Sprintf("Block(%x):\nPrevHash:%x\nUncleSha:%x\nCoinbase:%x\nRoot:%x\nTxSha:%x\nDiff:%v\nTime:%d\nNonce:%x\nTxs:%d\n", block.Hash(), block.PrevHash, block.UncleSha, block.Coinbase, block.state.trie.Root, block.TxSha, block.Difficulty, block.Time, block.Nonce, len(block.transactions))
}
+func (block *Block) GetRoot() interface{} {
+ return block.state.trie.Root
+}
//////////// UNEXPORTED /////////////////
func (block *Block) header() []interface{} {