Node: Don't log "Transaction failed" in solana (#1835)

Change-Id: I31ed7c57102dbdcd5956270e99859b9bdeaafb13
This commit is contained in:
bruce-riley 2022-11-01 10:13:00 -05:00 committed by GitHub
parent 83e0f053f8
commit a7d79407f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -307,7 +307,11 @@ func (s *SolanaWatcher) fetchBlock(ctx context.Context, logger *zap.Logger, slot
OUTER:
for txNum, txRpc := range out.Transactions {
if txRpc.Meta.Err != nil {
logger.Info("Transaction failed, skipping it", zap.Int("txNum", txNum))
logger.Debug("Transaction failed, skipping it",
zap.Uint64("slot", slot),
zap.Int("txNum", txNum),
zap.String("err", fmt.Sprint(txRpc.Meta.Err)),
)
continue
}
tx, err := txRpc.GetTransaction()