mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
parent
f141803661
commit
ef180848f0
@ -81,6 +81,12 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, hash common.Hash)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if no transactiion was found in the txpool then we return nil and an error warning that we didn't find the transaction by the hash
|
||||||
|
if txn == nil {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
return newRPCPendingTransaction(txn, curHeader, chainConfig), nil
|
return newRPCPendingTransaction(txn, curHeader, chainConfig), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user