forked from cerc-io/plugeth
Added some methods to comply to the PoW block interface
This commit is contained in:
parent
e02c0fa808
commit
56843ca0fc
@ -348,10 +348,18 @@ func NewUncleBlockFromValue(header *ethutil.Value) *Block {
|
|||||||
return block
|
return block
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (block *Block) Trie() *ethrie.Trie {
|
||||||
|
return block.state.Trie
|
||||||
|
}
|
||||||
|
|
||||||
func (block *Block) GetRoot() interface{} {
|
func (block *Block) GetRoot() interface{} {
|
||||||
return block.state.Trie.Root
|
return block.state.Trie.Root
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (block *Block) Diff() *big.Int {
|
||||||
|
return block.Difficulty
|
||||||
|
}
|
||||||
|
|
||||||
func (self *Block) Receipts() []*Receipt {
|
func (self *Block) Receipts() []*Receipt {
|
||||||
return self.receipts
|
return self.receipts
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user