~pierrenn/areyoucsw

d7f781ae763b4f2c92130b877279323effd3b6ed — pierrenn 11 months ago da091e0
readme: clean script
1 files changed, 2 insertions(+), 2 deletions(-)

M README.md
M README.md => README.md +2 -2
@@ 13,13 13,13 @@ You need a rust toolchain and a running btc node.
You can [install `cargo`](https://doc.rust-lang.org/cargo/getting-started/installation.html) if you don't have it already.

If you want to pull extra infos from the RPC node to display, you need to add the 16k addresses to your watch list.
You can do it with a small bash script:
You can do it with a small bash script (will label the addresses `csw{1..16404}`):

```
awk '{ print $2 }' data/tulip > addresses
idx=0;
while IFS='' read -r LINE || [ -n "${LINE}" ]; do
    idx=$((idx+1)); echo $idx $LINE; ./bitcoin-cli --datadir=/media/block/blockchain/bitcoin -rpcuser=foo -rpcpassword=bar importaddress $LINE csw$idx false
    idx=$((idx+1)); echo $idx $LINE; bitcoin-cli importaddress $LINE csw$idx false
done < addresses
rm -f addresses
```