-
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
Runes migration from commando to lightning #6403
Runes migration from commando to lightning #6403
Conversation
These need to be in commit messages: we shouldn't count on getting them from GH. Also, it's Changelog-Added: for the new ones, and Changelog-Deprecated: for the old ones! |
Oh, and don't merged inside PRs! Always rebase, if you need to... (And you do actually need to, since master changed a little: |
Any chance we could consider renaming the blacklistrune function? This is a user facing name, and I think we have an opportunity to be creative -- Its a rune, an ancient stone of great power and magical authorization, could it be: Destroyed, Shattered, Disintegrated, Obliterated, Pulverized, Smashed, Splintered, Unbound, Defaced, Demagicked, Disenchanted, Depowered ... |
"uncastrune"? |
Also needs rebase to fix db ops which have changed... |
"curserune". But I'll let Shahana decide :) (Note: we can have aliases to commands fairly trivially, by replicating the |
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Most code stolen from commando, but uses db directly not datastore. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This looks suspiciously like `commando-rune`! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This extracts the core checking functionality for a rune, so they can easily be used more widely than just commando. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Weird! postgres doesn't like "end" as a column name, so @ShahanaFarooqui suggested "start_index" and "end_index". |
Ack 1b0a88c |
…ed commando ones. Rune functionality moved into core from commando plugin. Changelog-Added: JSON-RPC: `checkrune`: check rune validity for authorization; `createrune` to create/modify rune; `listrunes` to list existing runes; `blacklistrune` to revoke permission of rune Changelog-Deprecated: JSON-RPC: `commando-rune`, `commando-listrunes` and `commando-blacklist`. No-schema-diff-check
This is neater anyway, but we still need to tell memleak code about the htable. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
If As mentioned above, it just requires replicating 3 I think this has 2 benefits:
Am I missing something about aliasing? What do you think? |
Thank you for the suggestion.
|
This moves the
runes
functionality of CLN fromcommando
into the core (it does not yet redirect the commando plugin to use the core, but that's next!). This allows runes to be use by far more infrastructure, such as the comingclnrest
plugin!Changelog-Added: JSON-RPC:
checkrune
: check rune validity for authorization;createrune
to create/modify rune;listrunes
to list existing runes;blacklistrune
to revoke permission of runeChangelog-Deprecated: JSON-RPC:
commando-rune
,commando-listrunes
andcommando-blacklist
.