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

249 commits

Author SHA1 Message Date
sstone
90e875030e move interop test binaries into os-specific directories.
This way, we will be able to run our interop tests on osx or windows (if
we manage to cross-compile lightningd)
2016-07-12 12:27:33 +02:00
sstone
b3fff8af95 add bitcoin and lightning binaries, use them from our interop test
We use bitcoind 91abb77970f47b1f6166e564bc695ed30c75bb63
and lightningd 7727797bee8454d4bfaa310c578b94081187f59d from
https://github.com/sstone/lightning branch estimatefee.
Our interop test will now launch lightningd and bitcoind (in regtest mode).
This works on linux only.
2016-07-07 18:18:56 +02:00
sstone
3d1e67b785 use a less verbose toString for ShaChain 2016-07-07 18:11:09 +02:00
sstone
8dd8e5f7cc Merge branch 'master' into wip-uniclose 2016-07-07 12:34:26 +02:00
Fabrice Drouin
0c06f7c9f5 compatibility with lightningd (#13)
* upgrade code to match latest lightningd

use secp256k1 format for sigs, update .proto, use timeouts in blocks insteads of seconds...

* update interrop test

* update comments and fix a few typos

* added nonreg tests on lightning types

* use our extensions for protobuf messages

* add comment to explain why we need getBlockCount
2016-07-07 12:33:27 +02:00
pm47
51bb812fb5 fixed typo in tests name 2016-07-05 19:17:27 +02:00
pm47
5c12a2eeaa added a complete set of tests for open-> normal states 2016-07-05 19:15:58 +02:00
pm47
2020118c8a refactored tests 2016-07-04 17:19:51 +02:00
pm47
352889d358 moved checkCloseSignature to Helpers.scala 2016-07-04 16:50:32 +02:00
pm47
5124878733 removed CMD_CLOSE and error handling from whenUnhandled catchall function 2016-07-04 16:42:09 +02:00
pm47
268dc0215b renamed NEGOCIATING to NEGOTIATING 2016-07-04 16:00:01 +02:00
pm47
caab4d9e44 removed unused code and moved comment section 2016-07-04 15:57:36 +02:00
sstone
c70cada8f7 detect when they publish a revoked commit tx and try and steal it 2016-07-01 17:10:02 +02:00
sstone
307bcd5054 Merge branch 'master' into wip-uniclose 2016-07-01 16:26:37 +02:00
sstone
59d1dead71 create a tx that steals their revoked commit tx 2016-07-01 16:22:34 +02:00
sstone
bfb4c98937 add iterators to ShaChain 2016-07-01 16:21:22 +02:00
pm47
96645c1930 bumped version to 0.2-SNAPSHOT 2016-06-30 16:09:51 +02:00
sstone
207a2fb3b0 shachain: track which hash index was inserted last 2016-06-24 17:49:33 +02:00
sstone
cb5e21959e Merge branch 'wip-bolt2' into wip-uniclose 2016-06-23 17:35:38 +02:00
sstone
6993dd0263 store received preimages in a shachain.
Beef up channel and interroperability tests.
2016-06-23 16:23:44 +02:00
sstone
f316aa3887 upgrade bitcoin-lib 2016-06-23 13:09:56 +02:00
sstone
87fed03eeb update shachain implementation 2016-06-23 00:04:19 +02:00
sstone
25f5cd601f move shachain into commitment data 2016-06-17 14:49:56 +02:00
sstone
2e61f8afa6 implement uniclose before NORMAL state has been reached 2016-06-17 14:25:37 +02:00
sstone
7e1f7236f8 code cleanup 2016-06-10 18:25:31 +02:00
sstone
ca5cb7e8bb add interoperability test with lightningd 2016-06-09 16:21:14 +02:00
sstone
2ba08d6ad4 update eclair-cli 2016-06-09 16:20:44 +02:00
sstone
673cc61d6b Merge remote-tracking branch 'origin/wip-bolt2-nakamoto' into wip-bolt2 2016-06-07 17:38:41 +02:00
Fabrice Drouin
d07a201353 create a specific data stucture for commitment data
* create a specific data stucture for commitment data

* remove lenses

* move makeFinalTx to Helpers

* remove unused type, clean up CLOSING data

* code cleanup

* check revocation preimage

* use a "either" type to represent their next commit information

We either have their next revocation hash (most of the time), or their next commit
tx (when we've signed and are waiting for their revocation message)
2016-06-07 14:50:10 +02:00
sstone
6d2ee58158 update eclair-cli 2016-06-03 18:02:03 +02:00
sstone
6aebf4ea65 closing: fix clearing phase 2016-06-03 17:56:27 +02:00
sstone
719e92f8fb add basic bash eclair client 2016-06-02 17:15:36 +02:00
sstone
f0c447a189 Channel: use our fee rate for our first commit tx 2016-06-02 16:29:07 +02:00
sstone
6009ba6c18 use a basic p2pkh script for our final tx 2016-06-02 15:57:29 +02:00
sstone
c23303aee7 API: minor fixes 2016-06-02 15:56:47 +02:00
sstone
a0760ddcad closing: implement closing fee negociation 2016-06-02 14:30:43 +02:00
sstone
6c69a4082a start implementing closing 2016-05-31 17:35:42 +02:00
Pierre-Marie Padiou
1f0f8c0e44 Added 'send' macro in test scenario (#10)
* added 'send' macro in test scenario

* formatting

* formatting
2016-05-31 13:04:09 +02:00
pm47
bafd2a0d34 modified rusty's tests to pass with real channel implementation 2016-05-30 18:10:12 +02:00
pm47
f26718d50c changed test constants 2016-05-30 18:09:09 +02:00
pm47
370e5bef15 reduced polling initial timeout 2016-05-30 18:08:34 +02:00
pm47
69f9425dce closing dummy http client in tests 2016-05-30 18:08:16 +02:00
pm47
a5f21afa67 updated scala and akka 2016-05-30 18:07:02 +02:00
Fabrice Drouin
b055df5338 Wip bolt2 nakamoto (#9)
* use lightning.proto from lightning-c v0.3-2016-05-26 "Nakamoto's Genesis Coins"

* check that preimage size is 32 bytes (see 1245ffaae3 and
https://lists.linuxfoundation.org/pipermail/lightning-dev/2016-May/000529.html)
2016-05-27 18:30:22 +02:00
sstone
e72d919879 tests should use 32 bytes preimages 2016-05-27 16:26:59 +02:00
sstone
90a5a20651 check that preimage size is 32 bytes
see 1245ffaae3 and
https://lists.linuxfoundation.org/pipermail/lightning-dev/2016-May/000529.html
2016-05-27 16:19:16 +02:00
sstone
0b4d3cc161 use lightning.proto from lightning-c v0.3-2016-05-26 "Nakamoto's Genesis Coins" 2016-05-27 12:36:08 +02:00
sstone
0396b5589d Merge branch 'wip-bolt2' of https://github.com/ACINQ/eclair into wip-bolt2 2016-05-26 18:25:22 +02:00
sstone
d517fa6ec2 fix encryption/decryption bug 2016-05-26 17:45:41 +02:00
Pierre-Marie Padiou
07d489c0d0 Replaced 'find' by 'collect' (#8)
* replaced 'find' by 'collect'

* fixed bug ourChanges->theirChanges
2016-05-26 14:34:54 +02:00