cyphernode icon indicating copy to clipboard operation
cyphernode copied to clipboard

walletnotify.sh: don't check other wallets

Open Kexkey opened this issue 2 years ago • 4 comments

  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.

Kexkey avatar Oct 08 '23 16:10 Kexkey

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.

Kexkey avatar Oct 08 '23 17:10 Kexkey

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

phillamy avatar Oct 10 '23 18:10 phillamy