Rusty Russell
8df29db48f
runes: fix stored field.
...
The uid isn't enough: it could be someone else's rune. This is tested
in the command rune list tests.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2023-07-25 14:47:12 +09:30
Shahana Farooqui
49fdc0df99
runes: Renamed listrunes to showrunes
2023-07-25 11:07:43 +09:30
Shahana Farooqui
a649e8b517
runes: create and blacklist commands aliases
...
- Added `invokerune` alias for `createrune`
- Added `destroyrune` alias for `blacklistrune`
2023-07-25 11:07:43 +09:30
Rusty Russell
0ceee9390a
lightningd: avoid notleak markers: move global into struct runes.
...
This is neater anyway, but we still need to tell memleak code about the htable.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2023-07-21 16:44:22 +09:30
Shahana Farooqui
4d16b220c2
lightningd: implement blacklistrune command.
2023-07-21 16:44:22 +09:30
Rusty Russell
5774737a5c
lightningd: implement checkrune command.
...
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 >
2023-07-21 16:44:22 +09:30
Rusty Russell
b9169d7862
lightningd: implement createrune command.
...
This looks suspiciously like `commando-rune`!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2023-07-21 16:44:22 +09:30
Rusty Russell
5987c156a0
lightningd: implement listrunes command.
...
Most code stolen from commando, but uses db directly not datastore.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2023-07-21 16:44:22 +09:30
Rusty Russell
9177084505
lightningd: new runes infrastructure.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2023-07-21 16:44:22 +09:30