This commit adds the lsps2_get_info call defined by BLIP052. It also adds a test policy plugin that the LSP service plugin uses to fetch the actual fee menu from to separate the concerns of providing a spec compliant implementation of an LSP and making business decisions about fee prices. Signed-off-by: Peter Neuroth <pet.v.ne@gmail.com>
16 lines
446 B
Rust
16 lines
446 B
Rust
use cln_plugin::options;
|
|
|
|
pub mod handler;
|
|
pub mod model;
|
|
|
|
pub const OPTION_ENABLED: options::FlagConfigOption = options::ConfigOption::new_flag(
|
|
"dev-lsps2-service-enabled",
|
|
"Enables lsps2 for the LSP service",
|
|
);
|
|
|
|
pub const OPTION_PROMISE_SECRET: options::StringConfigOption =
|
|
options::ConfigOption::new_str_no_default(
|
|
"dev-lsps2-promise-secret",
|
|
"A 64-character hex string that is the secret for promises",
|
|
);
|