Skip to content

Commit

Permalink
fix tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Nov 2, 2023
1 parent 1e664ab commit fb8a294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/txmgr/confirmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func NewConfirmer[
lggr: lggr,
client: client,
TxAttemptBuilder: txAttemptBuilder,
tracker: NewTracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE](
abandonedTracker: NewTracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE](
&txStore, lggr),
resumeCallback: nil,
chainConfig: chainConfig,
Expand Down
1 change: 1 addition & 0 deletions common/txmgr/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func (tracker *Tracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) finali
ctx context.Context, atx AbandonedTx[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE]) bool {
switch atx.tx.State {
case TxConfirmed, TxConfirmedMissingReceipt, TxFatalError:
// TODO: Query db again to see if this was updated?
return true
case TxInProgress:
if time.Now().After(atx.fatalTime) {
Expand Down

0 comments on commit fb8a294

Please sign in to comment.