@@ -347,6 +347,7 @@ func (ec *Confirmer[CID, HEAD, ADDR, THASH, BHASH, R, SEQ, FEE]) ProcessIncluded
347347 continue
348348 }
349349 confirmedTxIDs = append (confirmedTxIDs , tx .ID )
350+ ec .lggr .Infow ("Transaction confirmed" , "etxID" , tx .ID , "tracingID" , tx .GetTracingID (ec .lggr ))
350351 observeUntilTxConfirmed (ctx , ec .metrics , tx , head )
351352 }
352353 // Mark the transactions included on-chain with a purge attempt as fatal error with the terminally stuck error message
@@ -796,12 +797,14 @@ func (ec *Confirmer[CID, HEAD, ADDR, THASH, BHASH, R, SEQ, FEE]) ForceRebroadcas
796797 continue
797798 }
798799 attempt .Tx = * etx // for logging
799- ec .lggr .Debugw ("Sending transaction" , "txAttemptID" , attempt .ID , "txHash" , attempt .Hash , "err" , err , "meta" , etx .Meta , "feeLimit" , attempt .ChainSpecificFeeLimit , "callerProvidedFeeLimit" , etx .FeeLimit , "attempt" , attempt )
800- if errCode , err := ec .client .SendTransactionReturnCode (ctx , * etx , attempt , ec .lggr ); errCode != multinode .Successful && err != nil {
801- ec .lggr .Errorw (fmt .Sprintf ("ForceRebroadcast: failed to rebroadcast tx %v with sequence %v, gas limit %v, and caller provided fee Limit %v : %s" , etx .ID , * etx .Sequence , attempt .ChainSpecificFeeLimit , etx .FeeLimit , err .Error ()), "err" , err , "fee" , attempt .TxFee )
802- continue
800+ errType , err := ec .client .SendTransactionReturnCode (ctx , * etx , attempt , ec .lggr )
801+ if errType == multinode .Successful || errType == multinode .TransactionAlreadyKnown {
802+ ec .lggr .Infow ("ForceRebroadcast: Broadcasted transaction" , "txAttemptID" , attempt .ID , "txHash" , attempt .Hash , "tracingID" , etx .GetTracingID (ec .lggr ), "meta" , etx .Meta , "feeLimit" ,
803+ attempt .ChainSpecificFeeLimit , "callerProvidedFeeLimit" , etx .FeeLimit , "attempt" , attempt , "etxID" , etx .ID , "etx" , etx , "errType" , errType , "err" , err )
804+ } else {
805+ ec .lggr .Errorw ("ForceRebroadcast: Broadcasted transaction" , "txAttemptID" , attempt .ID , "txHash" , attempt .Hash , "tracingID" , etx .GetTracingID (ec .lggr ), "meta" , etx .Meta , "feeLimit" ,
806+ attempt .ChainSpecificFeeLimit , "callerProvidedFeeLimit" , etx .FeeLimit , "attempt" , attempt , "etxID" , etx .ID , "etx" , etx , "errType" , errType , "err" , err )
803807 }
804- ec .lggr .Infof ("ForceRebroadcast: successfully rebroadcast tx %v with hash: 0x%x" , etx .ID , attempt .Hash )
805808 }
806809 }
807810 return nil
0 commit comments