interledger-deprecated / ilp-plugin-bells

ILP Ledger plugin for five-bells-ledger
Other
4 stars 8 forks source link

When a message or transfer is from and to the same account, factory will emit duplicate events #130

Closed justmoon closed 7 years ago

justmoon commented 7 years ago

When receiving a message or transfer from and to the same user, the factory should emit only one event, however, it will currently emit two.

Suggested fix:

Add accounts = uniq(accounts) in factory.js, line 98 where uniq is lodash/uniq.

This issue currently breaks sending payments to the connector user in ILP Kit.