From 60b5a94428abf57dc921347684508db44f0f1a04 Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 7 May 2015 18:23:24 +0200 Subject: [PATCH] xeth: getTransactionByHash, try pool if db fails --- xeth/xeth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xeth/xeth.go b/xeth/xeth.go index 90f709aea..e5f068fd1 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -235,6 +235,8 @@ func (self *XEth) EthTransactionByHash(hash string) (tx *types.Transaction, blha data, _ := self.backend.ExtraDb().Get(common.FromHex(hash)) if len(data) != 0 { tx = types.NewTransactionFromBytes(data) + } else { // check pending transactions + tx = self.backend.TxPool().GetTransaction(common.HexToHash(hash)) } // meta