Commit 56843ca0 authored by obscuren's avatar obscuren

Added some methods to comply to the PoW block interface

parent e02c0fa8
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment