1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-20 02:27:32 +01:00
eclair/eclair-core
Pierre-Marie Padiou f5a5985205
Multiple fixes in payment lifecycle (#693)
* permissive codec for failure messages

Some implementations were including/ommitting the message type when
including a `channel_update` in failure messages.

We now use a codec that supports both versions for decoding, and
will encode *with* the message type.

* make router handle updates from failure messages

This is a regression caused by 9f708acf04,
which made the `Peer` class encapsulates network announcements inside
`PeerRoutingMessage`, in order to preserve the origin of the messages.

But when we get channel updates as part of failure messages when making
payments, they weren't encapsulated and were ignored by the router.

Re-enabled a non-regression test in `IntegrationSpec` which will prevent
this from happening in the future.

* improve handling of `Update` payment failures

Exclude nodes that send us multiple `Update` failures for the same
payment (they may be bad actors)
2018-09-11 18:07:24 +02:00
..
src Multiple fixes in payment lifecycle (#693) 2018-09-11 18:07:24 +02:00
eclair-cli Fixed some logs and added ChannelPersisted event (#674) 2018-08-15 14:39:19 +02:00
pom.xml Electrum: add wallet and watcher tests (via Docker) (#592) 2018-06-27 14:34:02 +02:00