Skip to content

Commit

Permalink
dev: support new dev recovery command
Browse files Browse the repository at this point in the history
Based on
vincenzopalazzo/lightning@ee449ad

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed May 7, 2024
1 parent 7bfd5b7 commit f43d495
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions folgore-common/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,9 @@ pub trait FolgoreBackend<T: Clone> {
_: &str,
_: bool,
) -> Result<Value, PluginError>;

/// FIXME: document this dev command if will be merged
fn sync_dev_updateutxo(&self, _: &mut Plugin<T>) -> Result<Value, PluginError> {
Ok(serde_json::json!({}))
}
}
Empty file removed folgore-common/src/client/model.rs
Empty file.
7 changes: 7 additions & 0 deletions folgore-esplora/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,11 @@ impl<T: Clone, S: RecoveryStrategy> FolgoreBackend<T> for Esplora<S> {
}
Ok(resp)
}

fn sync_dev_updateutxo(
&self,
_: &mut cln::plugin::plugin::Plugin<T>,
) -> Result<serde_json::Value, PluginError> {
Err(error!("need to be implemented"))
}
}

0 comments on commit f43d495

Please sign in to comment.