1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 03:14:26 +01:00
eclair/eclair-core
Bastien Teinturier fcd88b0a0a
Wake up wallet nodes before relaying messages or payments (#2865)
We refactor `NodeRelay.scala` to re-order some steps. The steps are:

1. Fully receive the incoming payment
2. Resolve the next node (unwrap blinded paths if needed)
3. Wake-up the next node if necessary (mobile wallet)
4. Relay outgoing payment

Note that we introduce a wake-up step, that can be extended to include
mobile notifications. We introduce that same wake-up step in channel
relay and message relay. We also allow relaying data to contain a wallet
`node_id` instead of an scid. When that's the case, we start by waking
up that wallet node before we try relaying onion messages or payments.

This wake-up step doesn't contain any logic right now apart from waiting
for the peer to connect, if it isn't connected already. But it can easily be
extended to send a mobile notification to prompt the wallet to connect.
2024-08-28 09:43:11 +02:00
..
src Wake up wallet nodes before relaying messages or payments (#2865) 2024-08-28 09:43:11 +02:00
eclair-cli Update the CLI tools (#2837) 2024-03-13 10:47:20 +01:00
pom.xml Update Bitcoin Core to v27.1 (#2862) 2024-06-18 14:41:37 +02:00