From 56843ca0fca1886213be4ee1e25995a537afda57 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 10 Oct 2014 22:42:37 +0200 Subject: [PATCH] Added some methods to comply to the PoW block interface --- ethchain/block.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ethchain/block.go b/ethchain/block.go index d6ff5ef7e..72dc5b55a 100644 --- a/ethchain/block.go +++ b/ethchain/block.go @@ -348,10 +348,18 @@ func NewUncleBlockFromValue(header *ethutil.Value) *Block { return block } +func (block *Block) Trie() *ethrie.Trie { + return block.state.Trie +} + func (block *Block) GetRoot() interface{} { return block.state.Trie.Root } +func (block *Block) Diff() *big.Int { + return block.Difficulty +} + func (self *Block) Receipts() []*Receipt { return self.receipts }