bismuthfoundation / BismuthRPC

[Released] A Json-RPC Server for Bismuth Crypto Currency
GNU General Public License v3.0
7 stars 8 forks source link

[Feature Request] walletnotify config argument #17

Open EggPool opened 6 years ago

EggPool commented 6 years ago

From @aareon

Reference: https://en.bitcoin.it/wiki/Running_Bitcoin

A wallet transaction includes any transaction for any given address belonging to said wallet.

Usage: -walletnotify=echo “Transaction received... TXID: %s”

EggPool commented 6 years ago

@aareon How do you deal with rollbacks? You can be notified several times of the same tx, or be notified for a tx that will disappear later on (even if we wait for a minimum number of confirmations, and in that case, it's no more real time)

Aareon commented 6 years ago

Walletnotify typically notifies twice per transaction. Once when it arrives, another when it gets one confirmation. If a transaction doesn’t confirm, it’s up to whatever is taking said notifications to handle that logic. I failed to mention that this is how it works, I apologize.