node/pkg/ethereum: check for rpc.ErrNoResult with non-nil tx
This cannot currently happen the way TransactionReceipt is implemented, but make sure to check the tx != nil case anyway in case the API is changed in future releases of go-ethereum. commit-id:b721f0be
This commit is contained in:
parent
5de9d11b51
commit
33717ebcc9
|
@ -317,7 +317,7 @@ func (e *Watcher) Run(ctx context.Context) error {
|
|||
zap.Error(err))
|
||||
continue
|
||||
}
|
||||
if tx == nil {
|
||||
if tx == nil || err == rpc.ErrNoResult {
|
||||
logger.Info("tx was orphaned",
|
||||
zap.Stringer("tx", pLock.message.TxHash),
|
||||
zap.Stringer("blockhash", key.BlockHash),
|
||||
|
|
Loading…
Reference in New Issue