SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
362 stars 68 forks source link

walletnotify.sh: don't check other wallets #310

Open Kexkey opened 9 months ago

Kexkey commented 9 months ago
  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 commented 9 months ago

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.

phillamy commented 8 months ago

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