mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
Bor: GetTransactionReceipt (#4209)
This commit is contained in:
parent
ada46b0344
commit
c43ae65bba
@ -255,8 +255,12 @@ func (api *APIImpl) GetTransactionReceipt(ctx context.Context, hash common.Hash)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if chainConfig.Bor != nil {
|
||||
if blockNum == 0 {
|
||||
blockNum, ok, err = api.txnLookup(ctx, tx, hash)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !ok {
|
||||
if chainConfig.Bor != nil {
|
||||
var blocN uint64
|
||||
borTx, blockHash, blocN, _, err = rawdb.ReadBorTransaction(tx, hash)
|
||||
if err != nil {
|
||||
@ -266,13 +270,7 @@ func (api *APIImpl) GetTransactionReceipt(ctx context.Context, hash common.Hash)
|
||||
return nil, nil // not error, see https://github.com/ledgerwatch/erigon/issues/1645
|
||||
}
|
||||
blockNum = blocN
|
||||
}
|
||||
} else {
|
||||
blockNum, ok, err = api.txnLookup(ctx, tx, hash)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !ok {
|
||||
} else {
|
||||
return nil, nil // not error, see https://github.com/ledgerwatch/erigon/issues/1645
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user