1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-21 14:04:10 +01:00
Commit graph

600 commits

Author SHA1 Message Date
Fabrice Drouin
dc3c49fbeb BOLT 4: propagate htlc failures upstream (#30)
* BOLT 4: create return packets for failure messages

* bolt 4: add low-level methods for returning error messages

* BOLT 4: return shared secrets along with the onion packet

* codecs: minor fix the UpdateFailHtlc codec

* BOLT 4: return htlc failures
create and propagate htlc failures as per BOLT 4

* update tests

* channel: publish short channel id when restoring data
and not on reconnection

* channel: remove "channel update" parameters from Commitments.sendAdd()

* channel: send "add htlc failed" to relayer
and a more informative message to the sender through handleCommandError

* keep shared secrets local to PaymentLifeCycle
CMD_ADD_HTLC should just know the onion packet (as before), not the shared secrets

* relayer: handle failure cases
wrong expiry, amount, ...

* added a simple test on the fail workflow

* added a 'channel-capacity-exceeded' test

* make PaymentSucceeded and PaymentFailed children of PaymentResult

* relayer: ChannelUpdates should be stored in a Map, not an Option

* reply with update_fail_malformed_htlc when the onion is not parsable

* channel: handle 'update_fail_malformed_htlc' in Shutdown state
and add tests

* minor: AddHtlcSucceeded -> AddHtlcSuccess

* use bitcoin-lib 0.9.10
2017-03-17 17:01:14 +01:00
pm47
9253267c69 put back CONSOLE appender to logback (still disabled) 2017-03-17 15:35:17 +01:00
pm47
33ef4c816c set more lax timeouts for travis 2017-03-16 17:43:46 +01:00
Pierre-Marie Padiou
71f62eead9 Added support for UpdateFee (#29)
* clarified which fee rate we are using in calculations, also feeRate->feerate

* added support for UpdateFee

* fixed closing workflow when starting with different fees

* attempt at solving travis issues

* fixed feeratePerKw not cleaned up after tests

* added test on invalid initial feerate

* fixed bitcoind api calls mixup, tested on mainnet

* rebased from wip-bolts
2017-03-16 17:31:38 +01:00
pm47
a67e1fe6c7 fixed incorrect log message in PeerWatcher 2017-03-16 17:10:02 +01:00
pm47
b0eb2ffb1d better cleanup after integration test 2017-03-16 17:04:01 +01:00
pm47
815ce15f5f temporary test files are now written to target/ directory 2017-03-16 16:46:54 +01:00
pm47
db342e8db3 basic 3-hops integration test (setup+send htlc) 2017-03-16 16:19:15 +01:00
dpad85
19c65790e2 (gui) Added a Preloader when application starts with a gui
* The splash window is now a javafx preloader
* Node setup is now handled during the JavaFX application init phase
* During this initialization the preloader is shown (handled by FX).
* Setup events are dispatched from main App to preloader with notifyPreloader
* When setup errors, display them in the preloader. Main gui is not loaded
2017-03-16 13:36:48 +01:00
pm47
a9a60fe1c2 first shot at multi-hops integration test (WIP!!) 2017-03-16 00:13:00 +01:00
pm47
21402dabb3 make config load eclair subsection 2017-03-15 23:45:11 +01:00
pm47
b190d0df39 quick fix: config in boot was only reading default parameters 2017-03-15 23:37:49 +01:00
pm47
a2eab64785 fixed bug in router where we were adding spent channels 2017-03-15 18:52:05 +01:00
pm47
dc51943621 db files are now in <datadir>/db/ 2017-03-15 18:51:40 +01:00
pm47
05e2bd34d4 now storing conf, seed and db in a datadir (default ~/.eclair) 2017-03-15 18:06:02 +01:00
pm47
92819f3835 added windows standalone installer 2017-03-15 17:54:50 +01:00
pm47
a65d411f5b added safety measures to PeerWatcher 2017-03-10 17:07:07 +01:00
pm47
ade9ca0121 ignoring INPUT_DISCONNECTED in CLOSED state 2017-03-10 17:07:07 +01:00
pm47
e66d25a561 fixed potentially no-unique channel actor name 2017-03-10 17:07:07 +01:00
pm47
40e22f3dec channel updates are now cleaned up when channel is torn down 2017-03-10 17:07:06 +01:00
dpad85
7ca2431511 (gui) improved status bar resizing behaviour 2017-03-10 16:00:26 +01:00
Pierre-Marie Padiou
f2c49c275a Switch to 32B channel-id (#28)
* implemented long channel-id + delayed announcements

* we now handle the case when disconnected before having sent announcement sigs

* channel-id is now computed as a txHash ^ outputIndex
2017-03-10 11:47:19 +01:00
dpad85
876d6f61fd (gui) added node alias and RGB in status bar 2017-03-09 19:22:51 +01:00
dpad85
0b2993ea6a (gui) set node IP column width 2017-03-09 19:03:31 +01:00
dpad85
4b5fa0c92b (gui) fixed missing parenthesis in rgb 2017-03-09 19:02:53 +01:00
dpad85
02dd347158 (gui) nodes/channels tables use Announcement as underlying datas
Also added a IP column to nodes table
2017-03-09 18:55:19 +01:00
dpad85
af691d6e9b (gui) refactored variable names of nodes/channels in network 2017-03-09 18:55:03 +01:00
pm47
045dfe589a fixed bug in router where spent channels wheren't cleaned up 2017-03-09 18:44:59 +01:00
pm47
746bf08963 replaced map by collect 2017-03-09 17:45:53 +01:00
pm47
394c0caf0a watcher is now replaying txes since parent confirmed when an output has already been spent 2017-03-09 17:24:52 +01:00
pm47
f840ec9835 made the disctinction between binding-ip and public-ip in conf 2017-03-09 17:24:52 +01:00
dpad85
d511796f90 (gui) when channel is offline, close button label is 'Force close' 2017-03-09 16:46:23 +01:00
dpad85
245ed99baa (gui) send payment parameters are checked asap 2017-03-09 16:44:29 +01:00
dpad85
8a9d14e61c Handling gui logs when logging with colors 2017-03-09 15:04:11 +01:00
dpad85
dc63f74e0b (gui) Removing terminated local channels from list 2017-03-09 15:04:11 +01:00
pm47
144bfe7760 CMD_CLOSE in OFFLINE now results in an unilateral close 2017-03-09 15:03:38 +01:00
pm47
fe0df3d97d shutdown message is now acknowledged by closing_signed 2017-03-09 14:52:17 +01:00
pm47
3454fb784a Register now uses 'forward' instead of '!' 2017-03-09 14:06:46 +01:00
pm47
0283631fdd refactored CMD_CLOSE handling 2017-03-09 12:03:54 +01:00
pm47
4ea6fdcea7 fixed bug when channel disappears 2017-03-09 11:51:44 +01:00
sstone
4d3a344a69 bolt 3: update test vectors 2017-03-08 10:48:24 +01:00
sstone
c1cf96e4f8 BOLT 3: check that we can directly spend htlc outputs 2017-03-07 23:06:26 +01:00
sstone
08bf37c1dc make htlc output directly spendable with the revocation key
see https://github.com/lightningnetwork/lightning-rfc/pull/105
and https://github.com/lightningnetwork/lightning-rfc/pull/123
test vectors pending
2017-03-07 17:44:40 +01:00
sstone
076011bd35 channel: fix init -> offline transition
don't persist and don't send anything when transitioning from INIT to OFFLINE
2017-03-07 14:52:49 +01:00
Pierre-Marie Padiou
a24bebf666 Implemented long channel-id + delayed announcements (#27)
* implemented long channel-id + delayed announcements

* added a ShortChannelIdAssigned event
2017-03-06 17:19:55 +01:00
sstone
e18a12c565 forward payments through register
we ask register, which maintains of active channels, to forward payments instead
of relying on actor selection/actor path.
2017-03-06 15:25:01 +01:00
pm47
f3db1ea15c moved extractOutgoingMessages to Helpers 2017-03-02 17:03:50 +01:00
pm47
c017a9a217 routing announcements are now stored individually 2017-03-01 20:09:22 +01:00
pm47
b05444fa77 peersDb is now a simple cache containing valid ip addresses 2017-03-01 19:01:09 +01:00
pm47
453dc699ed removed ChannelState and moved dbs declarations to Dbs 2017-03-01 18:27:20 +01:00