Skip to content

Expose former_temporary_channel_id and pathfinding sync timestamp - #270

Open
elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:expose-misc-fields
Open

Expose former_temporary_channel_id and pathfinding sync timestamp #270
elnafateh wants to merge 1 commit into
lightningdevkit:mainfrom
elnafateh:expose-misc-fields

Conversation

@elnafateh

Copy link
Copy Markdown
Contributor

Part of #251.

Adds former_temporary_channel_id on ChannelStateChanged (only set for Pending) and latest_pathfinding_scores_sync_timestamp on GetNodeInfoRespons.

bolt12_invoice is blocked because there's no bech32 encoding for Bolt12Invoice/StaticInvoice

@ldk-reviews-bot

ldk-reviews-bot commented Sep 1, 2026

Copy link
Copy Markdown

I've assigned @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

//
// Will be `None` if background pathfinding score syncing isn't configured, or no scores have
// been merged since the node was initialized.
optional uint64 latest_pathfinding_scores_sync_timestamp = 15;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

in the list its now going: 7, 8, 15, 9, 10..

can you fix this

Comment thread e2e-tests/tests/e2e.rs
assert!(pending_a.funding_txo.is_some());
assert!(pending_a.reason.is_none());
assert_eq!(pending_a.closure_initiator, ChannelClosureInitiator::Unspecified as i32);
assert!(pending_a.former_temporary_channel_id.as_deref().is_some_and(|id| !id.is_empty()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

for safety can we check that this is != to the channel id

Comment thread e2e-tests/tests/e2e.rs
assert!(pending_a.funding_txo.is_some());
assert!(pending_a.reason.is_none());
assert_eq!(pending_a.closure_initiator, ChannelClosureInitiator::Unspecified as i32);
assert!(pending_a.former_temporary_channel_id.as_deref().is_some_and(|id| !id.is_empty()));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same here

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.

3 participants