good morning!!!!

Skip to content
Snippets Groups Projects
Commit 60b5a944 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

xeth: getTransactionByHash, try pool if db fails

parent dcfecebe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment