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

createonion to accept an optional custom onion_size #4519

Merged
merged 3 commits into from
May 24, 2021

Conversation

fiatjaf
Copy link
Contributor

@fiatjaf fiatjaf commented May 10, 2021

I'm trying to make a trampoline routing plugin and I'm hoping this very small change will be enough to allow me to make the custom trampoline onions to be built without me having to reimplement onion-making functions from scratch.

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Nice! Textbook commit, with changelog and docs and everything!

Minor comments only, happy to tweak if you don't want to go around again?

lightningd/pay.c Outdated Show resolved Hide resolved
@fiatjaf
Copy link
Contributor Author

fiatjaf commented May 12, 2021

Addressed your two comments.

Please feel free to tweak other things if necessary!

Copy link
Contributor

@rustyrussell rustyrussell left a comment

Choose a reason for hiding this comment

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

Ack 2cf2a32

Perfect!

@rustyrussell rustyrussell assigned cdecker and unassigned rustyrussell May 14, 2021
@rustyrussell
Copy link
Contributor

@cdecker Wanted to write some tests to make sure this works as expected...

@fiatjaf fiatjaf requested a review from cdecker as a code owner May 17, 2021 00:34
@rustyrussell
Copy link
Contributor

Got bored waiting, added test. (It passed :)

@fiatjaf
Copy link
Contributor Author

fiatjaf commented May 17, 2021

Nice. Next week we'll need a parseonion function 🙄

@rustyrussell
Copy link
Contributor

rustyrussell commented May 23, 2021

Trivial rebase on master with CI fixes. Twice.

Ack 9f9432d

fiatjaf and others added 3 commits May 24, 2021 14:10
Changelog-Added: `createonion` RPC command now accepts an optional `onion_size`.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@cdecker cdecker merged commit d70661d into ElementsProject:master May 24, 2021
@fiatjaf fiatjaf deleted the custom-onion-sizes branch May 24, 2021 17:28
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