From: codeShark149 Date: Sat, 8 May 2021 12:16:56 +0000 (+0530) Subject: Updated Readme.md X-Git-Tag: v0.3.0~52 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.EncodeError.html?a=commitdiff_plain;h=157dcd6505909d9740fa2f7921c6c940069d0fbe;p=bdk-cli Updated Readme.md Readme updated to include instruction to connect to Bitcoin Core node serving compact filters. --- diff --git a/README.md b/README.md index ae506bb..81263ed 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,18 @@ To sync a wallet to the default electrum server: cargo run -- wallet --descriptor "wpkh(tpubEBr4i6yk5nf5DAaJpsi9N2pPYBeJ7fZ5Z9rmN4977iYLCGco1VyjB9tvvuvYtfZzjD5A8igzgw3HeWeeKFmanHYqksqZXYXGsw5zjnj7KM9/*)" sync ``` +To sync a wallet to Bitcoin Core node (assuming a regtest node at 127.0.0.1:18444) serving compact filters: + +Update `Cargo.toml` +``` +[features] +default = ["repl", "electrum", "compact_filters"] +``` +Then run: +```shell +cargo run -- --network regtest wallet --node 127.0.0.1:18444 --descriptor "wpkh(tpubEBr4i6yk5nf5DAaJpsi9N2pPYBeJ7fZ5Z9rmN4977iYLCGco1VyjB9tvvuvYtfZzjD5A8igzgw3HeWeeKFmanHYqksqZXYXGsw5zjnj7KM9/*)" sync +``` + To get a wallet balance with customized logging: ```shell