Skip to content

fix(ckbtc): keeping finalized UTXOs in state#9437

Open
ninegua wants to merge 2 commits intomasterfrom
paulliu/keeping-finalized-utxos-in-state
Open

fix(ckbtc): keeping finalized UTXOs in state#9437
ninegua wants to merge 2 commits intomasterfrom
paulliu/keeping-finalized-utxos-in-state

Conversation

@ninegua
Copy link
Member

@ninegua ninegua commented Mar 17, 2026

In update_balance, keep all finalized UTXOs in state as a stronger measure to prevent previously finalized UTXOs from being considered again.

@ninegua ninegua requested a review from a team as a code owner March 17, 2026 16:27
@github-actions github-actions bot added the fix label Mar 17, 2026
// Remove pending finalized transactions for the affected account.
state::mutate_state(|s| s.finalized_utxos.remove(&caller_account));
// Temporarily disabled. See DEFI-2697 for more details.
// state::mutate_state(|s| s.finalized_utxos.remove(&caller_account));
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have tests in this PR or another one ensuring that this has the expected behaviour

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants