mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
Fix eth_getTransactionReceipt
This commit is contained in:
parent
a106bd18f7
commit
57a7f7fd6f
1 changed files with 1 additions and 3 deletions
|
|
@ -2070,10 +2070,8 @@ func (api *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash commo
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, NewTxIndexingError() // transaction is not fully indexed
|
return nil, NewTxIndexingError() // transaction is not fully indexed
|
||||||
}
|
}
|
||||||
|
|
||||||
if !found {
|
if !found {
|
||||||
return nil, nil // transaction is not existent or reachable
|
|
||||||
}
|
|
||||||
if tx == nil {
|
|
||||||
tx, blockHash, blockNumber, index = rawdb.ReadBorTransaction(api.b.ChainDb(), hash)
|
tx, blockHash, blockNumber, index = rawdb.ReadBorTransaction(api.b.ChainDb(), hash)
|
||||||
borTx = true
|
borTx = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue