Skip to content

Conversation

@MartinquaXD
Copy link
Contributor

Description

Removes the use-soft-cancellation flag from the mempool configs. This flag is currently not used to make any decisions. And more importantly it will actually never make sense to execute different logic based on that.
The reason is that we actually don't care about cancellations getting mined. If we submit a cancellation we are really only interested in preventing the previous settlement tx to no longer be in the mempool.
If the same tx got replaced many times over it's technically possible that it's more cost effective to have an already expensive cancellation tx get mined than replacing it with another settlement tx (making it even more expensive in the process) but given the bad state of our current submission logic this is nothing we should optimize for at the moment.

Changes

Deleted unused use_soft_cancellations flag

@MartinquaXD MartinquaXD requested a review from a team as a code owner December 18, 2025 13:28
Copy link
Contributor

@jmg-duarte jmg-duarte left a comment

Choose a reason for hiding this comment

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

🧹

@MartinquaXD MartinquaXD added this pull request to the merge queue Dec 19, 2025
Merged via the queue into main with commit d8ef011 Dec 19, 2025
19 checks passed
@MartinquaXD MartinquaXD deleted the remove-soft-cancellation branch December 19, 2025 09:04
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants