-
Notifications
You must be signed in to change notification settings - Fork 906
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
lightningd/: Hooks now support a consistent interface for 'no operation'. #3475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a missing return
.
Also I think changing test plugins to reflect that would be good(edit: necessary as Travis passed otherwise).
I used darosior@cd329fa for testing if you want to cherry-pick.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just needs a compilation guard and implementation of the --deprecated-apis
CLI option, so plugins can be tested against them 🙂
For reference github.com/lightningd/plugins tests with --deprecated-apis=false
, so we can detect breakage early on.
1885f0b
to
349ee66
Compare
349ee66
to
b9b000d
Compare
changed a few more test plugin hooks to use the new syntax. |
Seems some headers got jumbled up
And this seems to be related to
|
b9b000d
to
80377c7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a tiny rebase otherwise ACK 80377c7
…on'. Changelog-Changed: The hooks `db_write`, `invoice_payment`, and `rpc_command` now accept `{ "result": "continue" }` to mean "do default action", in addition to `true` (`db_write`), `{}` (`invoice_payment`), and `{"continue": true}` (`rpc_command`). The older "default" indicators are now deprecated and are now recognized only if `--deprecated-apis` is set.
80377c7
to
68cab35
Compare
Changelog-Changed: The hooks
db_write
,invoice_payment
, andrpc_command
now accept{ "result": "continue" }
to mean "do default action", in addition totrue
(db_write
),{}
(invoice_payment
), and{"continue": true}
(rpc_command
). Eventually the older "default" indicators will be deprecated, but for now they will be supported, but logged asUNUSUAL
level.