Lnd: subscribetransactions fires duplicated event when a transaction is received

Created on 4 Dec 2018  路  3Comments  路  Source: lightningnetwork/lnd

Background

subscribetransactions is firing 2 events per tx received. Whenever I receive a transaction, lnd fires 2 events containing the same payload.

The transaction gets notified independent from the block notification once it鈥檚 confirmed and it鈥檚 also notified when processing the block notification containing the transaction.

Your environment

  • version of lnd - 0.5.1-beta commit=v0.5.1-beta-dirty
  • which operating system (uname -a on *Nix) - Linux ip-172-31-4-119 4.4.0-1060-aws #69-Ubuntu SMP Sun May 20 13:42:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • version of btcd, bitcoind, or other backend - bitcoind

Steps to reproduce

  • Listen suscribetransactions
  • Generate an address
  • Send btc to that address

Expected behaviour

An event should be fired only when the transaction gets notified independent from the block notification once it鈥檚 confirmed.

Actual behaviour

An event is also fired when processing the block notification containing the transaction.

bug notifications wallet

Most helpful comment

I can confirm the issue is still present

All 3 comments

I think this is no longer the case for updates from the invoice RPC sub-server.

This is regarding wallet transaction notifications.

I can confirm the issue is still present

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ealymbaev picture ealymbaev  路  3Comments

sunnya97 picture sunnya97  路  3Comments

BitBargain picture BitBargain  路  3Comments

ronaldvdmeer picture ronaldvdmeer  路  4Comments

Roasbeef picture Roasbeef  路  3Comments