Starting work on HTLC commands
This commit is contained in:
@@ -54,25 +54,6 @@ pub async fn run() -> Result<(), anyhow::Error> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// /// Create a BDK wallet using BIP 84 descriptor ("m/84h/1h/0h/0" and "m/84h/1h/0h/1")
|
||||
// pub fn create_wallet(xkey: ExtendedKey) -> anyhow::Result<Wallet<MemoryDatabase>> {
|
||||
// let xprv = xkey
|
||||
// .into_xprv(Network::Testnet)
|
||||
// .expect("couldn't turn xkey into xprv");
|
||||
|
||||
// let external_descriptor = Bip84(xprv, KeychainKind::External);
|
||||
// let internal_descriptor = Some(Bip84(xprv, KeychainKind::Internal));
|
||||
|
||||
// let wallet = Wallet::new(
|
||||
// external_descriptor,
|
||||
// internal_descriptor,
|
||||
// Network::Testnet,
|
||||
// MemoryDatabase::default(),
|
||||
// )?;
|
||||
|
||||
// Ok(wallet)
|
||||
// }
|
||||
|
||||
fn display_balance(wallet: &Wallet<MemoryDatabase>) {
|
||||
println!(
|
||||
"Wallet balance for {} after syncing: {:?} sats on network {}",
|
||||
|
||||
@@ -18,7 +18,7 @@ pub(crate) struct Args {
|
||||
#[derive(Subcommand)]
|
||||
pub(crate) enum Commands {
|
||||
/// Placeholder for future BTC commands
|
||||
Btc {},
|
||||
BtcTransfer {},
|
||||
|
||||
/// runs the Side Node
|
||||
Run { name: String },
|
||||
|
||||
@@ -28,7 +28,7 @@ pub async fn run() {
|
||||
let mut node = setup(name).await;
|
||||
node.start().await;
|
||||
}
|
||||
Some(Commands::Btc {}) => {
|
||||
Some(Commands::BtcTransfer {}) => {
|
||||
let _ = bitcoin::driver::run().await;
|
||||
}
|
||||
None => println!("No command provided. Exiting. See --help for more information."),
|
||||
|
||||
Reference in New Issue
Block a user