Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce collaborative revert e2e test #1873

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Conversation

luckysori
Copy link
Contributor

Fixes #1839.

@luckysori luckysori requested review from bonomat and holzeis January 23, 2024 07:14
@luckysori luckysori self-assigned this Jan 23, 2024

// The transaction fee for the collaborative revert transaction is split evenly among the two
// parties.
let tx_fee = total_tx_fee / 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 This is probably flaky since the fee can be an odd number.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so, we can change the assert below to something like

assert!(collab_revert_entry.amount_sats +1  >= expected_payout && collab_revert_entry.amount_sats - 1  <= expected_payout);

Copy link
Contributor

@bonomat bonomat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thanks for writing this test.

@bonomat bonomat added this pull request to the merge queue Jan 24, 2024
Merged via the queue into main with commit ab06dd9 Jan 24, 2024
10 checks passed
@bonomat bonomat deleted the chore/collab-revert-e2e-test branch January 24, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reintroduce collaborative revert e2e test
2 participants