cyphernode
cyphernode copied to clipboard
walletnotify.sh: don't check other wallets
for wallet in $(bitcoin-cli listwallets | tr -d ,\")
do
We should only process transactions from Cyphernode's wallets (spending, watching), not every wallet current loaded in the Bitcoin Node. The node could be used for other stuff beside Cyphernode's features.
Let's add %w to the bitcoin.conf's walletnotify line so we can skip processing the tx when it's not part of cyphernode wallet.
So we process Tx in those three wallets - matching the names :
watching01.dat xpubwatching01.dat spending01.dat
I remember we need to change the mosquitto_pub call also since it does not support multiple topics