diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-11 04:42:37 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-11 04:42:37 +0800 |
commit | 56843ca0fca1886213be4ee1e25995a537afda57 (patch) | |
tree | 5c4233b52314b74f39f881f8e3bae43c7802d9f7 | |
parent | e02c0fa8088943bc995d290e58a7226f4a0ece91 (diff) | |
download | dexon-56843ca0fca1886213be4ee1e25995a537afda57.tar.gz dexon-56843ca0fca1886213be4ee1e25995a537afda57.tar.zst dexon-56843ca0fca1886213be4ee1e25995a537afda57.zip |
Added some methods to comply to the PoW block interface
-rw-r--r-- | ethchain/block.go | 8 |
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 } |