Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore(BUX-322): change sync tx status when bump exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 committed Nov 27, 2023
1 parent 1064cb6 commit 4d070a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions paymail_service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,6 @@ func saveBeefTransactionInput(ctx context.Context, c ClientInterface, input *bee
newOpts := c.DefaultModelOptions(New())
inputTx := newTransaction(input.Transaction.String(), newOpts...)

if bump != nil {
inputTx.BUMP = *bump
}

sync := newSyncTransaction(
inputTx.GetID(),
inputTx.Client().DefaultSyncConfig(),
Expand All @@ -416,6 +412,11 @@ func saveBeefTransactionInput(ctx context.Context, c ClientInterface, input *bee
sync.P2PStatus = SyncStatusSkipped
sync.SyncStatus = SyncStatusReady

if bump != nil {
inputTx.BUMP = *bump
sync.SyncStatus = SyncStatusSkipped
}

inputTx.syncTransaction = sync

err := inputTx.Save(ctx)
Expand Down

0 comments on commit 4d070a4

Please sign in to comment.