Skip to content

Commit

Permalink
Fixes bouncing logic for the dispute
Browse files Browse the repository at this point in the history
This should be squashed. I just realized about this could actually be simplified.
Leaving like this for an easier review.
  • Loading branch information
sr-gi committed Aug 4, 2023
1 parent fa23e50 commit 340ab80
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions teos/src/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,9 @@ impl Responder {
dispute_tx.txid()
);
status
} else if status.off_sync() {
// If the dispute bounces because we are off-sync, we want to try again with the whole package. Hence, we leave this as
// reorged.
ConfirmationStatus::ReorgedOut
} else {
// The dispute was accepted, so we can rebroadcast the penalty.
// If the dispute is not rejected we can send the penalty.
// Notice this covers both the dispute being accepted or bouncing, given bouncing will mean it is already on chain.
carrier.send_transaction(&penalty_tx)
}
}
Expand Down

0 comments on commit 340ab80

Please sign in to comment.