aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-11 04:42:37 +0800
committerobscuren <geffobscura@gmail.com>2014-10-11 04:42:37 +0800
commit56843ca0fca1886213be4ee1e25995a537afda57 (patch)
tree5c4233b52314b74f39f881f8e3bae43c7802d9f7
parente02c0fa8088943bc995d290e58a7226f4a0ece91 (diff)
downloadgo-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar.gz
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar.bz2
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar.lz
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar.xz
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.tar.zst
go-tangerine-56843ca0fca1886213be4ee1e25995a537afda57.zip
Added some methods to comply to the PoW block interface
-rw-r--r--ethchain/block.go8
1 files changed, 8 insertions, 0 deletions
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
}