node/pkg/solana: skip failed transactions
Avoid unnecessary RPC calls/retries. Makes no difference for safety, which relies on VAA accounts rather than any transaction metadata. commit-id:0cd82ed4
This commit is contained in:
parent
7144d6b538
commit
6c02299f2b
|
@ -299,6 +299,14 @@ OUTER:
|
|||
continue
|
||||
}
|
||||
|
||||
if tx.Meta.Err != nil {
|
||||
logger.Debug("skipping failed Wormhole transaction",
|
||||
zap.Stringer("signature", signature),
|
||||
zap.Uint64("slot", slot),
|
||||
zap.String("commitment", string(s.commitment)))
|
||||
continue
|
||||
}
|
||||
|
||||
logger.Info("found Wormhole transaction",
|
||||
zap.Stringer("signature", signature),
|
||||
zap.Uint64("slot", slot),
|
||||
|
|
Loading…
Reference in New Issue