1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-13 11:35:47 +01:00
Commit graph

2245 commits

Author SHA1 Message Date
pm47
b59f9d640b
handle min pay-to-open in Phoenix 2021-02-01 15:33:06 +01:00
pm47
0b3ba78c7f
set version to 0.4.9-android-phoenix-SNAPSHOT 2021-02-01 15:10:07 +01:00
dpad85
4fa66bbafa
Release v0.4.8-android-phoenix 2021-01-25 16:53:33 +01:00
pm47
cf37cb12c9
set version to 0.4.8-android-phoenix-SNAPSHOT 2021-01-25 15:29:35 +01:00
pm47
f678dfa7b8
simplify pay-to-open message
We remove the `feeThresholdSatoshis`/`feeProportionalMillionths` fields
and only keep the `feeAmount` field, which is renamed to `payToOpenFee`.

Fee aggregation is easier, we just sum the `payToOpenFee`.
2021-01-25 15:19:42 +01:00
pm47
189e67ed67
remove Dockerfile 2021-01-15 12:51:16 +01:00
dpad85
5c98d08849
Release v0.4.7-android-phoenix 2021-01-13 12:24:58 +01:00
Pierre-Marie Padiou
ac8dd4d29f
Accept remote's closing fee when we have nothing at stake (#1633)
If we have nothing at stake there is no need to negotiate and we accept
their fee right away.
2020-12-15 13:34:15 +01:00
dpad85
addc7a4ab4
Release v0.4.6-android-phoenix 2020-11-30 14:11:15 +01:00
Pierre-Marie Padiou
339fe1c9f4
Take mutual close txes into account in bg check (#1621)
We have a background task that periodically checks the blockchain to
detect unexpected transactions, as they could be cheating attempts.

When cooperatively closing a channel, in the `NEGOTIATING` state, peers
exchange signatures in order to converge on a feerate for the mutual
close transaction. Any transaction exchanged during this negotiation
process is valid and may be published, even if the counterparty dies
abruptly before converging, due to e.g. connectivity issues.

Therefore, the electrum background check needs to take those
transactions into account and not flag them as potential cheating
attempts. We already do that when we are in the `CLOSING` state, as
there may be competing mutual closes.
2020-11-30 12:47:26 +01:00
dpad85
74e6576f87
Back to development 2020-11-13 18:37:10 +01:00
dpad85
285f33267a
Release v0.4.5-android-phoenix 2020-11-13 17:32:43 +01:00
dpad85
30cecbded1
Merge remote-tracking branch 'origin/graph-edge-detailed-log' into android-phoenix 2020-11-13 17:24:39 +01:00
Bastien Teinturier
4426981d03
Improve MPP-send for direct channels (#1599) (#1600)
When the recipient is a direct peer, we can use the accurate knowledge
of our local channels instead of hard-coded MPP parameters to choose
the number of routes and the minimum route amount.

This change makes it possible to easily send all local funds in one
payment when we're directly connected to the recipient.
2020-11-13 15:53:36 +01:00
pm47
20eb41fb01
pay-to-open: return errors for final node
Only implemented for channel relay.

This is backward compatible, any errors returned by existing Phoenix
will be interpreted as generic errors and will return an
`UnknownNextPeer`.
2020-11-13 15:16:40 +01:00
t-bast
83837b6992
Path-finding: log edge direction
We were previously ommitting the nodeId from graph edge, which means we
add duplicate edges but couldn't know which one was for which direction.
2020-11-12 17:16:24 +01:00
dpad85
13ff55b68b
Back to development 2020-11-12 15:40:20 +01:00
dpad85
ddd9b2ad5a
Release v0.4.4-android-phoenix 2020-11-12 11:56:08 +01:00
Bastien Teinturier
68209b804c
Add more path finding logs (#1597)
Since Phoenix has a low number of channels and discards the whole public
network graph, we can be more aggressive with what we log without flooding
the logs.

This information will be very helpful to troubleshoot issues when users
send multipart payments.
2020-11-12 11:05:00 +01:00
dpad85
71f0afcdc0
Release v0.4.3-android-phoenix 2020-11-10 18:26:01 +01:00
dpad85
7df8c3f543
Remove special ssl rule for electrum with onion address
This rule is redundant. Client app decides what ssl mode is used when
connecting to onion electrum servers. Some users do want to check
certificate when using tor.
2020-11-10 18:22:32 +01:00
Pierre-Marie Padiou
e876b10ffa
High fee tolerance for small channels (#1595)
For small channels we blindly accept feerate from funder.
This is a temporary fix to allow making payment in high fees
environment and will be removed when "anchor outputs" is deployed
2020-11-09 18:52:54 +01:00
dpad85
bef94ed9c2
Back to development 2020-10-15 11:39:22 +02:00
dpad85
34599aebc7
Release v0.4.2-android-phoenix 2020-10-14 17:34:03 +02:00
dpad85
d414fa2dc4
Subscribe ReconnectionTask to TickReconnect events
This lets phoenix wake up the reconnection task and reconnect to the
peer faster.
2020-10-14 16:33:59 +02:00
dpad85
c6c18d6469
Switch backup mailbox back to BoundedMailbox 2020-10-09 14:26:56 +02:00
pm47
96cd0e8ac2
Merge branch 'android' into android-phoenix 2020-10-09 13:36:55 +02:00
pm47
d051fa76c7
Merge commit 'ea57bb266' into android 2020-10-09 13:17:00 +02:00
pm47
648c841c0d
Merge commit 'b63c4aa5a' into android 2020-10-09 12:25:17 +02:00
pm47
fb8ae0cd59
fixup! Update android branch (#1162) 2020-10-09 11:40:20 +02:00
Bastien Teinturier
9bb992bbc9
Add DB entry for payment router error (#1513)
When using MPP, if we can't find a route, we need to add an entry to the
DB. Otherwise when users query their payment status, nothing will be
returned which is a bad UX.

Fixes #1512
2020-10-09 10:58:26 +02:00
pm47
ebed70b93c
Merge branch 'android' into android-phoenix 2020-10-09 10:56:19 +02:00
pm47
8ca798176d
Merge commit '68dfc6cb7' into android 2020-10-08 18:53:04 +02:00
pm47
2735e0f419
Merge commit 'd9f257ada' into android 2020-10-08 18:30:57 +02:00
pm47
d53b708a45
Merge branch 'android' into android-phoenix 2020-10-08 17:34:46 +02:00
Bastien Teinturier
e8bf5d1048
[OpenChannel] Use TLV for channel version (#1534)
We were previously using an encoding that was incompatible with TLV.
We keep the old format, but also understand the channel version when provided
in a TLV field.

If the old format is provided, it will be preferred.
2020-10-08 11:07:27 +02:00
dpad85
0850b084ce
Add message to unset FCM token from peer 2020-10-07 16:55:09 +02:00
pm47
d0b405fa62
special connection handling on phoenix
We always automatically reconnect, whether or not there are existing
channels.

Manual connection requests are ignored.
2020-09-30 16:06:26 +02:00
dpad85
9587a4e012
Merge branch 'hotfix/v0.3.11-android-phoenix' into android-phoenix 2020-09-21 10:48:22 +02:00
dpad85
bea1bddb56
Release v0.3.11-android-phoenix 2020-09-07 12:56:32 +02:00
dpad85
2e0ad4ea54
Fix issue with Phoenix reestablish channel type 2020-09-07 12:54:13 +02:00
dpad85
4638578ce9
Add support for FCM custom token (bit 35017)
When sending this message to a peer, the node expects the peer to
link the token with its own pubkey, and use fcm to wake him up
when needed.
2020-08-13 15:24:53 +02:00
dpad85
4280e28595
Back to development 2020-08-13 15:23:42 +02:00
pm47
7489251ffd
use db fee provider for faster startup
Instead of waiting for latest feerates from the fee provider at startup,
we use the previously stored feerates in the meantime, and proceed with
the initialization.

It makes sense because fees are asynchronous so we are "always late"
anyway.
2020-07-23 18:12:25 +02:00
pm47
e0f99f9714
Merge branch 'master' into android 2020-07-23 17:45:58 +02:00
dpad85
4a54e004ee
Update version to 0.4.0-android-SNAPSHOT 2020-07-20 14:24:29 +02:00
Fabrice Drouin
ea57bb266c
Release 0.4.1 (#1481)
* Set version to 0.4.1

* Set version to 0.4.2-SNAPSHOT
2020-07-20 12:00:01 +02:00
Pierre-Marie Padiou
65facab141
Add debug logs to transport handler (#1488) 2020-07-17 16:35:31 +02:00
Pierre-Marie Padiou
e06325e03b
fixup! Split the Peer in two (#1347) (#1487) 2020-07-17 15:09:28 +02:00
dpad85
210cf2ab46
Release v0.3.10-android-phoenix 2020-07-16 18:10:14 +02:00