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

96 commits

Author SHA1 Message Date
dpad85
f91c043281
Release v0.2-android-beta14 2018-12-20 17:36:25 +01:00
dpad85
5a28fb7a1b
Back to development mode 2018-12-18 19:04:37 +01:00
dpad85
ea73ae2295
Release v0.2-android-beta13 2018-12-14 14:14:37 +01:00
Pierre-Marie Padiou
dae5cc718a
Update Android branch (#746)
* Fixed regression in rebroadcast  (#713)

Fixed regression caused by 2c1811d: we now don't force sending a
channel_update at the same time with channel_announcement.
This greatly simplifies the rebroadcast logic, and is what caused the
integration test to fail.

Added proper test on Peer, testing the actor, not only static methods.

* Routing sync fixes (#712)

* Router: reset sync state on reconnection

When we're reconnected to a peer we will start a new sync process and should reset our sync
state with that peer.

* Ignore 'origin htlc not found' in CLOSING (#708)

If we don't have the origin, it means that we already have forwarded the fulfill so that's not a big deal.

This can happen if they send a signature containing the fulfill, then fail the channel before we have time to sign it.

* Fix handling of born again channels (#717)

* Fix handling of born again channels

When we receive a recent update for a channel that we had marked as stale we
must send a query to the underlying transport, not the origin of the update (which
would send the query back to the router)

* Replace `update_fee` in commitments (#709)

This is a simple optimisation, we don't have to keep all `update_fee`, just the last one.

cf BOLT 2:
> An update_fee message is sent by the node which is paying the Bitcoin fee. Like any update, it's first committed to the receiver's commitment transaction and then (once acknowledged) committed to the sender's. Unlike an HTLC, update_fee is never closed but simply replaced.

* Tests: use bitcoind 0.16.3 (#715)

Bitcoind 0.16.0 is no longer available

* Make `publishTransaction` idempotent (#711)

Bitcoin core returns an error `missing inputs (code: -25)` if the tx that we want to publish has already been published and its output have been spent. When we receive this error, we try to get the tx, in order to know if it is in the blockchain, or if its inputs were spent by another tx.

Note: If the outputs of the tx were still unspent, bitcoin core would return "transaction already in block chain (code: -27)" and this is already handled.

* Improved eclair-cli (#718)

This fixes #695, and also adds the channel point in the default channel output.

```bash
$ ./eclair-cli channel 00fd4d56d94af93765561bb6cb081f519b9627d3f455eba3215a7846a1af0e46
{
  "nodeId": "0232e20e7b68b9b673fb25f48322b151a93186bffe4550045040673797ceca43cf",
  "shortChannelId": "845230006070001",
  "channelId": "00fd4d56d94af93765561bb6cb081f519b9627d3f455eba3215a7846a1af0e46",
  "state": "NORMAL",
  "balanceSat": 9858759,
  "capacitySat": 10000000,
  "channelPoint": "470eafa146785a21a3eb55f4d327969b511f08cbb61b566537f94ad9564dfd00:1"
}
```

* Handle update relay fee in OFFLINE state (#719)

Previously it was only possible to update relay fee in NORMAL state,
which is not very convenient because most of the time there are always
some channels in OFFLINE state.

This works like the NORMAL case, except that the new `channel_update`
won't be broadcast immediately. It will be sent out next time the
channel goes back to NORMAL, in the same `channel_update` that sets the
`enable` flag to true.

Also added a default handler that properly rejects the
CMD_UPDATE_RELAY_FEE command in all other states.

* Fixed regression caused by 7a4f175 (#722)

When updating relay fee in state OFFLINE, the new channel_update must
have the disabled flag on.

This caused tests to be flaky, added necessary checks to always make
them fail in case that kind of regression happens again.

* Logging: use a rolling file appender (#721)

* Logging: use a rolling file appender

Use one file per day, keep 90 days of logs with a total maximum size
capped at 5 Gb

* Router: log routing broadcast in debug level only

* set version to 0.2-beta6

* set version back to 0.2-SNAPSHOT

* Simplify bitcoind version check (#731)

Bitcoind returns version as MMmmrr (major, minor, revision), use an int representation
and compare it to our minimum version target.

* Update scalatest and remove junit runner (#728)

* updated to scalatest 3.0.5

* use scalatest runner instead of junit

Output is far more readable, and makes console (incl. travis) reports
actually usable.

Turned off test logs as error reporting is enough to figure out what
happens.

The only downside is that we can't use junit's categories to group
tests, like we did for docker related tests. We	could use nested suites,
but that seems to be overkill so I just removed the categories. Users
will only have the possibility to either skip/run all tests.

* update scala-maven-plugin to 3.4.2

NB: This requires maven 3.5.4, which means that we currently need to
manually install maven on travis.

Also updated Docker java version to 8u181 (8u171 for compiling).

* Add instructions for Bitcoin Core 0.17.0 [ci skip] (#732)

* Add instructions for Bitcoin Core 0.17.0 [ci skip]

Bitcoin Core 0.17.0 deprecates the `signrawtransaction` RPC call, which will be removed in version 0.18.0, you need to enable this call if you want your eclair node to use a 0.1.70 node.

* README: add an example of how to use the new bitcoin.conf sections [ci skip]

* Only persist trimmed htlcs (#724)

We persist htlc data in order to be able to claim htlc outputs in
case a revoked tx is published by our counterparty, so only htlcs
above remote's `dust_limit` matter.

Removed the TODO because we need data to be indexed by commit number so
it is ok to write the same htlc data for every commitment it is included
in.

* set version to 0.2-beta7

* set version to 0.2-SNAPSHOT

* Add `htlcMaximumMsat` field to `ChannelUpdate` message (#738)

* Add `htlcMaximumMsat` field to `ChannelUpdate` message

* added compatibility test with c-lightning

* Fix encoding of FinalIncorrectHtlcAmount error message (#740)

* set version to 0.2-beta8

* set version to 0.2-SNAPSHOT

* Always add 1 block to the `finalCltvExpiry` (#742)

This fixes #651.

* ignore IntegrationSpec (no server on android)

* back to SNAPSHOT

* use proper [gs]etNullableLong method for Sqlite
2018-10-25 17:50:48 +02:00
dpad85
2379807f2e
Release v0.2-android-beta12 2018-09-20 13:03:12 +02:00
sstone
dba02f8265 set version to 0.2-android-beta12-sync-updates 2018-09-18 14:54:20 +02:00
sstone
990dbfac3e
set version to 0.2-android-beta12-SNAPSHOT 2018-09-18 12:15:15 +02:00
dpad85
a5a08a42a0
Release v0.2-android-beta11 2018-09-12 14:01:00 +02:00
Dominique
7017e76ad1
Set versions to 0.2-android-beta10 2018-08-15 16:52:53 +02:00
Dominique
818ef7fe1d
set version to 0.2-android-beta9 2018-07-18 20:58:53 +02:00
Dominique
3575fe7998
set version to 0.2-android-beta8 2018-07-16 12:12:49 +02:00
sstone
50d52b48ed
set version to 0.2-android-beta7 2018-06-21 13:31:51 +02:00
sstone
f3a5024c0d set version to 0.2-android-beta6 2018-06-11 16:24:39 +02:00
sstone
684004fef3 set version to 0.2-android-SNAPSHOT 2018-06-11 12:08:37 +02:00
sstone
8c4ecebf2d set version to 0.2-android-beta5 2018-06-05 17:55:28 +02:00
sstone
bf26272b86 Set version to 0.2-android-beta4 2018-05-31 10:25:12 +02:00
sstone
5eb381a0f8 set version to 0.2-android-beta3 2018-05-04 17:57:22 +02:00
dpad85
9277308b2b
set version to 0.2-android-beta2 2018-04-11 17:28:36 +02:00
pm47
0b1d28f2d9
set version to 0.2-android-beta1 2018-04-04 13:22:51 +02:00
pm47
e5509ed417
merge from master 2018-03-26 12:05:03 +02:00
Pierre-Marie Padiou
d38f227b42
Added copyright notice to all files (#497)
* added copyright notice to all files

* updated date in LICENSE
2018-03-21 16:29:42 +01:00
dpad85
36b0b223b0 Back to snapshot 2018-03-20 16:06:01 +01:00
dpad85
eed7038635 set version to 0.2-android-alpha14 2018-03-20 10:48:51 +01:00
pm47
3a6cd31aa8
Merge branch 'wip-routing-sync' into wip-android 2018-03-19 13:02:24 +01:00
pm47
1754bf0933
back to SNAPSHOT 2018-03-16 17:05:58 +01:00
pm47
99df38db8d
merged from master, set version to 0.2-android-alpha13 2018-03-15 20:56:19 +01:00
pm47
dbb4f5b467
set version to 0.2-alpha11 2018-03-15 19:41:53 +01:00
pm47
1b247ae613 back to SNAPSHOT 2018-02-16 18:10:35 +01:00
pm47
0beca13b23 set version to 0.2-alpha10 2018-02-16 17:28:01 +01:00
pm47
56ef710f06 back to SNAPSHOT 2018-01-23 19:11:06 +01:00
pm47
951bcc4750 set version to 0.2-alpha9 2018-01-23 15:29:21 +01:00
dpad85
42715abda0 Back to SNAPSHOT 2018-01-05 11:54:31 +01:00
pm47
74faad53e8 back to SNAPSHOT 2017-12-23 19:26:54 +01:00
pm47
8edb2a478c set version to 0.2-alpha8 2017-12-23 18:37:00 +01:00
pm47
6874dd6a50 set version to 0.2-android-alpha12 2017-12-23 00:21:07 +01:00
pm47
44dc219b61 back to SNAPSHOT 2017-12-15 19:33:07 +01:00
pm47
5730f19f06 set version to 0.2-android-alpha11 2017-12-15 19:32:23 +01:00
pm47
8c0eb4c159 back to SNAPSHOT 2017-12-15 19:31:22 +01:00
pm47
83649c3e9f set version to 0.2-android-alpha10 2017-12-15 19:17:45 +01:00
pm47
62af12b91e back to SNAPSHOT 2017-12-15 18:28:14 +01:00
pm47
f1afe3f4b7 back to SNAPSHOT 2017-12-14 18:22:39 +01:00
pm47
1155788b5e set version to 0.2-alpha7 2017-12-14 12:28:25 +01:00
pm47
44f7bd7145 bcak to SNAPSHOT 2017-12-06 19:19:30 +01:00
dpad85
b52948e889 Release version 0.2-android-alpha9 2017-12-06 19:12:45 +01:00
pm47
3d240f5761 set version 0.2-alpha6 2017-12-06 18:34:40 +01:00
pm47
4afc498226 Merge branch 'master' into wip-android 2017-12-06 13:57:25 +01:00
Nicolas Dorier
0794fb8d5a Docker support with repeatable build (#255)
Dependency to `git` has been removed, we now use `notag` when building without
a git directory.

In order to reliably fetch all dependencies, we do a first blank build
(with no source files), then we copy the sources and do a real commit.

This is a simpler and more robust approach.

Also, fixed the .dockerignore to filter out IDE files.
2017-12-05 17:29:47 +01:00
pm47
68b494d283 Merge branch 'master' into wip-android 2017-11-23 11:31:46 +01:00
Pierre-Marie Padiou
bfa3e1c2ca Reformat + optimized imports (#222)
* Reformat + optimized imports

* Fixed unwanted modifications
2017-11-21 20:08:15 +01:00
dpad85
e400fb5eb4 set version to 0.2-android-alpha8 2017-11-21 19:26:41 +01:00