aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 92e73c7d5..bf30fc2fc 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -160,16 +160,13 @@ func (self *XEth) BlockByHash(strHash string) *Block {
return NewBlock(block)
}
-func (self *XEth) EthBlockByHash(hash common.Hash) *types.Block {
+func (self *XEth) EthBlockByHash(strHash string) *types.Block {
+ hash := common.HexToHash(strHash)
block := self.backend.ChainManager().GetBlock(hash)
return block
}
-func (self *XEth) EthBlockByHexstring(strHash string) *types.Block {
- return self.EthBlockByHash(common.HexToHash(strHash))
-}
-
func (self *XEth) EthTransactionByHash(hash string) *types.Transaction {
data, _ := self.backend.ExtraDb().Get(common.FromHex(hash))
if len(data) != 0 {