]> Untitled Git - bdk-cli/commitdiff
Updated Readme.md
authorcodeShark149 <rajarshi149@gmail.com>
Sat, 8 May 2021 12:16:56 +0000 (17:46 +0530)
committercodeShark149 <rajarshi149@gmail.com>
Sat, 22 May 2021 16:37:50 +0000 (22:07 +0530)
Readme updated to include instruction to connect to Bitcoin Core node serving compact filters.

README.md

index ae506bb43facbc23643d9e7483d84aef7ac75442..81263edba0fbd151f4ac19948faca88b5c5faec6 100644 (file)
--- 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