aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:24:48 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-27 05:24:48 +0800
commit2c5a32ebbc60f23e609c8397dad5d09ee38b69bb (patch)
treef3032df9df2a1b1abfac2a0aaae58f0b2125b54f /xeth
parent1f3814141b94166cc5bf5b439babe6cc56b3cebf (diff)
downloaddexon-2c5a32ebbc60f23e609c8397dad5d09ee38b69bb.tar.gz
dexon-2c5a32ebbc60f23e609c8397dad5d09ee38b69bb.tar.zst
dexon-2c5a32ebbc60f23e609c8397dad5d09ee38b69bb.zip
Undo XEth changes
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 {