Skip to content

Serialize rebalance trigger checks#75

Merged
benthecarman merged 1 commit into
masterfrom
rebalance-race
Jun 2, 2026
Merged

Serialize rebalance trigger checks#75
benthecarman merged 1 commit into
masterfrom
rebalance-race

Conversation

@benthecarman

Copy link
Copy Markdown
Collaborator

Run rebalance trigger checks while holding the balance mutex so concurrent callers cannot all authorize work from the same stale wallet state.

This keeps trusted and on-chain rebalances from being queued more than once when rapid payment activity invokes the rebalancer from multiple paths at the same time.

Run rebalance trigger checks while holding the balance mutex so concurrent
callers cannot all authorize work from the same stale wallet state.

This keeps trusted and on-chain rebalances from being queued more than
once when rapid payment activity invokes the rebalancer from multiple
paths at the same time.
@benthecarman benthecarman merged commit 9ae182c into master Jun 2, 2026
2 checks passed
@benthecarman benthecarman deleted the rebalance-race branch June 2, 2026 17:57
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.

1 participant