1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-24 06:47:46 +01:00
Commit graph

576 commits

Author SHA1 Message Date
dpad85
34677f0ed6 Added an activity tab to the GUI (#52)
* (gui) added Activity tab (payment sent, received, relayed)
* GUIUpdater listens to PaymentEvent
* payments are listed in separate tableviews (sent, received, relayed)
* added Payment[Sent, Relayed, Received] events
* (gui) Handling Relayed and Sent payments in Activity Tab
* (gui) fixed amount columns in activity
* (gui) Added formatting to monetary columns of activity tables
* (gui) payments are prepended to activity tables
2017-03-31 20:03:36 +02:00
Pierre-Marie Padiou
72a14914fc Added integration tests on htlc relaying in on-chain scenarios (#51)
* using scodec for failure messages

* we now update routing info and retry payments in case of Update failure

* properly implemented BOLT4/'Receiving Failure Codes' (also fixed a bug with UnknownPaymentHash)

* added integration tests on htlc timeout

* relayer now sends an UpdateFail to downstream when an htlc timeout hits the blockchain

* added integration tests on extracting preimage from blockchain

* cleaning up of htlc bindings in relayer

* router now doesn't send a 2nd request to bitcoind when it is notified of a new channel twice in a short amount of time

* peerclient now asks for witness when retrieving blocks from bitcoind

* getTxBlockHash now returns None instead of an error when tx is in the mempool

* we now look into the mempool when checking for WatchSpent

* fixed FundingSigned been sent twice when deferring an early FundingLocked

* added zeromq listener, removed predefined eclair.conf files in test, limited concurrent rpc calls to 5 for the router

* Update README.md with ZMQ configuration

* Added a warning and link to alpha2 install instructions

* removed PeerClient

* improved PeerWatcher performance
2017-03-31 18:08:59 +02:00
Pierre-Marie Padiou
eba5915f8c Use chain getblockchaininfo.chain to infer the magic value (#45)
* use chain getblockchaininfo.chain to infer the magic value, remove bitcoind.network conf parameter (closes #43)

* minor: renamed socket->socketAddress, also rebased
2017-03-28 14:05:52 +02:00
Pierre-Marie Padiou
16d3960f75 Automated retry of payments (#44)
* using scodec for failure messages

* we now update routing info and retry payments in case of Update failure

* properly implemented BOLT4/'Receiving Failure Codes' (also fixed a bug with UnknownPaymentHash)
2017-03-27 13:29:27 +02:00
dpad85
e728cad4ac Access to version/commit id at runtime (#42)
* Added help option in command line; added version in logs

* Version and commit id added in manifest (use Specification-Version for commitId)

* (gui) version in about is now dynamic; ESC key closes about

* Excluded unused protobuf dependency

* Update README.md
2017-03-27 11:14:54 +02:00
pm47
15f6fbdca4 back to 0.2-SNAPSHOT 2017-03-21 17:17:48 +01:00
pm47
05607a01e5 setting pom version to 0.2-alpha1 2017-03-21 16:52:38 +01:00
pm47
79f2882ac8 fixed init error in package app 2017-03-21 16:47:24 +01:00
pm47
7106e2e2c9 fixed warning in scaladoc 2017-03-21 15:57:11 +01:00
pm47
6c268a9df1 fixed error handling during initialization 2017-03-21 15:55:41 +01:00
pm47
0c580528b7 made build process less verbose 2017-03-21 14:55:16 +01:00
pm47
17df27a01f fixed comment 2017-03-21 14:55:01 +01:00
sstone
2e2a47e5fd fix local/remote delay inversion 2017-03-21 14:37:04 +01:00
dpad85
eb78f07e2d (gui) fix issue with initial size of modals in ubuntu 2017-03-21 14:36:55 +01:00
Pierre-Marie Padiou
f984e55c68 fixed how we interpret feature bits (#37) 2017-03-21 13:16:12 +01:00
Fabrice Drouin
516ce96c0c BOLT 3: fix computation of obscured tx number (#36)
* BOLT 3: fix computation of obscured tx number
* BOLT 3: fix computation of obscured tx number
2017-03-21 12:02:36 +01:00
dpad85
ca2b678fd4 (gui) updated about 2017-03-21 11:58:57 +01:00
dpad85
03cf8616c5 (gui) More concise about 2017-03-21 11:58:57 +01:00
dpad85
d3e521d9e3 Fixed RPC calls
* help was not up-to-date
* send returns a PaymentResult
* get channel must use a BinaryData
2017-03-21 11:58:57 +01:00
Pierre-Marie Padiou
a59b4ad2ed Fixed non-compliant wire messages (#34)
* fixed fundingOutputIndex uint8->uint16

* removed HTLC-timeout sigs from RevokeAndAck

* added an (unused yet) features field to channel announcement
2017-03-20 16:18:46 +01:00
dpad85
f9bdd72b24 Wip gui wording (#33)
* (gui) removed headings in tabs listing global nodes/channels

* (gui) wording node id

* (gui) title of network announcement tabs is updated with list changes
2017-03-20 15:56:20 +01:00
sstone
ae34bbaf89 tcp client: use keepalive=true 2017-03-19 22:01:04 +01:00
sstone
22e579cf82 handle case where bitcoind estimatesmartfee returns -1 2017-03-19 22:00:12 +01:00
dpad85
2b11a048fc (gui) add announcement only if absent from network list 2017-03-17 20:04:17 +01:00
Pierre-Marie Padiou
f7e8d531fa added a supervision strategy to all actors (#31) 2017-03-17 18:00:43 +01:00
pm47
6797f5e3e9 made windows installer generation run at package phase 2017-03-17 17:51:29 +01:00
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