Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API call for making a new offer #6

Merged
merged 6 commits into from
Dec 6, 2023
Merged

API call for making a new offer #6

merged 6 commits into from
Dec 6, 2023

Conversation

orbitalturtle
Copy link

We add a new API call to allow building BOLT 12 offers! We need this for our integration tests over at lndk.

@orbitalturtle orbitalturtle changed the base branch from main to ldk-18 November 12, 2023 22:31
@orbitalturtle orbitalturtle force-pushed the ldk-18 branch 2 times, most recently from 7b5b5ef to 4f98fa3 Compare November 13, 2023 20:47
@orbitalturtle orbitalturtle force-pushed the offers branch 3 times, most recently from 427689a to c04cbd8 Compare November 15, 2023 20:11
Copy link

@carlaKC carlaKC left a comment

Choose a reason for hiding this comment

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

Driveby comments!

@@ -139,6 +143,27 @@ impl Node {
}
}

// build an offer to receive payments at this node. path_pubkeys lists the nodes the path will contain,
// starting with the introduction node and ending in the destination node (the current node).
pub async fn create_offer(
Copy link

Choose a reason for hiding this comment

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

Out of interest - do you think there's any chance of this being added to ldk_sample upstream?

Copy link
Author

Choose a reason for hiding this comment

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

Good question! I'll ask

@orbitalturtle orbitalturtle force-pushed the offers branch 2 times, most recently from 8d3b4cb to 848e562 Compare November 22, 2023 03:48
@orbitalturtle orbitalturtle changed the base branch from ldk-18 to main December 6, 2023 21:58
As described in orbitalturtle/rust-lightning#2 we need
to temporarily bump rust-lightning dependencies to avoid dependency conflicts
in lndk.
Add options to configure the logging level and ldk node number (to
identify each ldk node in lndk's integration tests). Also add a
couple helpful logs.
@orbitalturtle
Copy link
Author

Merging this since my next PR depends on this.

@orbitalturtle orbitalturtle merged commit e0dd855 into main Dec 6, 2023
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.

2 participants