@@ -263,7 +263,7 @@ func (t *txPool) addToCheckQueue(pct *PendingCheckTransaction) error {
263263 t .logger .Debug ("queuing transaction for check" ,
264264 "tx" , pct .Raw (),
265265 "hash" , pct .Hash (),
266- "recheck" , pct .flags . isRecheck () ,
266+ "recheck" , pct .checked ,
267267 )
268268 if err := t .checkTxQueue .add (pct ); err != nil {
269269 t .logger .Warn ("unable to queue transaction" ,
@@ -529,7 +529,7 @@ func (t *txPool) checkTxBatch(ctx context.Context) error {
529529 "tx" , batch [i ].Raw (),
530530 "hash" , batch [i ].Hash (),
531531 "result" , res ,
532- "recheck" , batch [i ].flags . isRecheck () ,
532+ "recheck" , batch [i ].checked ,
533533 )
534534
535535 // Make sure a failed transaction is removed from the seen cache as the transaction may
@@ -548,7 +548,7 @@ func (t *txPool) checkTxBatch(ctx context.Context) error {
548548
549549 // For any transactions that are to be queued, we defer notification until queued.
550550
551- if ! batch [i ].flags . isRecheck () {
551+ if ! batch [i ].checked {
552552 acceptedTransactions .With (t .getMetricLabels ()).Inc ()
553553 newTxs = append (newTxs , batch [i ])
554554 }
@@ -605,7 +605,7 @@ func (t *txPool) checkTxBatch(ctx context.Context) error {
605605 // Notify submitter of success.
606606 notifySubmitter (idx )
607607
608- if ! pct .flags . isRecheck () {
608+ if ! pct .checked {
609609 // Mark new transactions as never having been published. The republish worker will
610610 // publish these immediately.
611611 var publishTime time.Time
@@ -831,7 +831,7 @@ func (t *txPool) recheck() {
831831 notifyCh := make (chan * protocol.CheckTxResult , 1 )
832832 pcts = append (pcts , & PendingCheckTransaction {
833833 TxQueueMeta : tx ,
834- flags : txCheckRecheck ,
834+ checked : true ,
835835 notifyCh : notifyCh ,
836836 })
837837 results = append (results , notifyCh )
0 commit comments