Files
breez-sdk-liquid/cli
ok300 434fb80d49 Add shutdown signal (#238)
* Add shutdown signal handling

Revert periodic sync interval change

Revert keep-alive interval change

CLI: Add disconnect command

SDK: Add scaffolding for is_started, shutdown()

Simplify instance init

* Rebase on savage-async-ws branch

* Avoid waiting when shutdown signal is received in the sync loop

* Directly use shutdown signal in background threads

* Acquire is_started lock at the very beginning of start()

* Fix cargo clippy warnings

* Update RN generator (kt): set bindingLiquidSdk to null on disconnect()

* Update RN generator (swift): set bindingLiquidSdk to nil on disconnect()

* Startup: only run foreground sync() if this could be the first run

* Start a sync() in background, before regular sync() loop

* Remove ensure_started check from start()

* Add bindings for disconnect()

* Remove foreground sync condition from startup

* Simplify background sync loop
2024-05-30 08:04:30 +00:00
..
2024-05-30 08:04:30 +00:00
2024-05-25 06:20:14 +02:00
2024-05-25 06:20:14 +02:00

breez-liquid-sdk-cli

Setup

You'll need a Testnet LN node to test the sending and receiving operations. A simple solution is using Alby's testnet nodes. Read more about Alby's test setup here.

Commands

Start the CLI with

cargo run

To set a specific network, use one of

cargo run -- --network mainnet
cargo run -- --network testnet

To specify a custom data directory, use

cargo run -- --data-dir temp-dir

To set a custom log level, use

RUST_LOG=info|debug|warn cargo run

To specify a file to pipe logs to, use

RUST_LOG=info|debug|warn cargo run -- --log-file /tmp/log