Conversation
This was referenced Feb 5, 2026
Author
m-kus
marked this pull request as ready for review
February 6, 2026 12:37
This was referenced Feb 6, 2026
This was referenced Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DR
Added outgoing state synchronization for privacy pools with improved channel key handling.
What changed?
COST_OUTGOING_CHANNEL_INFOfrom 2 to 3 to account for public key retrievalOutgoingChannelstruct to include achannel_keyderived from sender and recipient identitiesoutgoing_statemodule that orchestrates the full outgoing sync workflow:tokio::task::JoinSetHow to test?
Run the new tests in the
outgoing_statemodule:test_sync_outgoing_state_full_discovery: Verifies complete discovery with a generous budgettest_sync_outgoing_state_pagination: Tests pagination across multiple calls with limited budgetsWhy make this change?
This change completes the outgoing state synchronization workflow, enabling efficient discovery of outgoing channels, subchannels, and note indices. The addition of channel key handling improves the security model, while the parallelized processing enhances performance. The pagination support with cursor pruning ensures efficient resource usage during discovery operations.
This change is