mirror of
https://github.com/ACINQ/eclair.git
synced 2025-03-13 03:14:26 +01:00
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. |
||
---|---|---|
.. | ||
src | ||
eclair-cli | ||
pom.xml |