Skip to content

Commit 44bdbcf

Browse files
committed
Fix nonce not becoming available when swap is cancelled from a funding or funded state
1 parent f32b4e7 commit 44bdbcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ocp/worker/swap/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func (p *runtime) markNonceReleasedDueToSubmittedTransaction(ctx context.Context
281281
}
282282

283283
func (p *runtime) markNonceAvailableDueToCancelledSwap(ctx context.Context, record *swap.Record) error {
284-
err := p.validateSwapState(record, swap.StateCreated)
284+
err := p.validateSwapState(record, swap.StateCreated, swap.StateFunding, swap.StateFunded)
285285
if err != nil {
286286
return err
287287
}

0 commit comments

Comments
 (0)