Imported addresses do not trigger a walletnotify #6040

issue ethernomad opened this issue on April 21, 2015
  1. ethernomad commented at 8:28 AM on April 21, 2015: contributor

    walletnotify is really useful because you can respond as soon as a transaction is broadcast or confirmed, but it only works for addresses in the bitcoind wallet. If you import an address from an xpub, for example, walletnotify does not seem to trigger.

    Can walletnotify be extended to work with imported addresses?

  2. laanwj added the label Wallet on Apr 21, 2015
  3. laanwj commented at 8:47 AM on April 21, 2015: member

    I think it can be considered a bug if -walletnotify doesn't trigger for transactions on watch-only addresses.

  4. jonasschnelli commented at 8:54 AM on April 21, 2015: contributor

    Agreed with @laanwj. At first sight (https://github.com/bitcoin/bitcoin/blob/master/src/wallet/wallet.cpp#L743) i was assuming that watch-only addresses also triggering the -walletnotify script. Will test in detail soon.

  5. ethernomad commented at 9:26 AM on April 21, 2015: contributor

    Sorry - my mistake. It does trigger a wallet notify.

    The problem I was encountering was that when I called gettransaction on a payment to a watch address the details section was empty. I suppose this section is specifically for actual wallet transactions.

  6. ethernomad closed this on Apr 21, 2015

  7. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me