pm47
29d2b0134c
mega-merge from wip-uniclose
2016-07-22 15:24:29 +02:00
pm47
cf09c1caaf
fixed formatting
2016-07-21 12:46:52 +02:00
sstone
9dbaaaefa9
lightning interop test: use 6015cedee8
2016-07-20 18:50:01 +02:00
Pierre-Marie Padiou
9d419b9d8a
Wip uniclose txdb ( #15 )
...
* implement a basic tx db that stores how to spend revoked transactions
it's a simple db that stores spending tx indexed by their parent id
* bumped akka version to 2.4.8
* fixed wrong data type in CLEARING and NEGOTIATING handlers
* added a few common handlers
* moved sendAdd/receiveAdd logic to Commitments.scala
* moved htlc index to Commitments class
* cleaned up sig handlers
* removed unused variable
* storing their commit's txid so that we can identify spending tx
* added a log to unimplemented function 'handleTheirSpentCurrent'
* changed ascii art helpers->handlers
* fix misleading comments and code in Channel
* removed unused imports
* added test showing bug when two htlcs share the same r
* added a failing test showing that punish tx output isn't p2wpkh
* fix failing test
* use P2WPKH instead of P2PKH in our "punishment" tx
* fix failing test
* added helper methods in test
* fixed test
2016-07-20 17:39:19 +02:00
pm47
90811d1d5a
added BITCOIN_ANCHOR_SPENT handlers
2016-07-19 17:48:57 +02:00
pm47
821a9fd68a
added tests to NEGOTIATING state
2016-07-19 17:43:19 +02:00
pm47
818928be67
added missing handler for error pkts in NEGOTIATING state
2016-07-19 16:50:25 +02:00
pm47
381b495a61
added tests to CLEARING state
2016-07-19 16:42:31 +02:00
pm47
7dc8e5b1cc
added a few tests to NORMAL state
2016-07-19 13:28:39 +02:00
pm47
64638e27bb
added CORS headers
2016-07-19 11:48:34 +02:00
pm47
1df016b367
disabled mutual close tests
2016-07-19 11:45:17 +02:00
pm47
45d0ab6d8e
Merge branch 'wip-uniclose' of github.com:ACINQ/eclair into wip-uniclose
2016-07-19 10:51:46 +02:00
sstone
44096e39e1
fix interop test
2016-07-13 15:05:25 +02:00
Pierre-Marie Padiou
785aa73eac
Wip-scalapbc ( #14 )
...
* using scalapb binary
* switched to unix file separator
* removed protoc compilation (because we are using precompiled scalapb
2016-07-13 13:04:37 +01:00
pm47
f8c84e2d20
more tests for NORMAL state (showing bug in close_clearing)
2016-07-12 18:04:22 +02:00
pm47
fbf40358f3
updated scalapb to 0.4.21 and set java version to 1.7
2016-07-12 17:41:36 +02:00
pm47
9b949bb989
fixed pattern matching warnings
2016-07-12 16:04:17 +02:00
sstone
89073fbb5f
Merge branch 'wip-uniclose' of https://github.com/ACINQ/eclair into wip-uniclose
2016-07-12 12:29:46 +02:00
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
pm47
7bc2ef59a6
Merge branch 'wip-uniclose' of github.com:ACINQ/eclair into wip-uniclose
2016-07-11 19:45:45 +02:00
pm47
46af9c8c4d
merged
2016-07-11 19:45:14 +02:00
pm47
c79b101291
added a bunch of tests to NORMAL state
2016-07-11 19:35:54 +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
Pierre-Marie Padiou
6204627dff
Merge pull request #12 from ACINQ/wip-bolt2
...
Merge wip-bolt2 into master
2016-06-30 16:03:35 +02:00
sstone
207a2fb3b0
shachain: track which hash index was inserted last
2016-06-24 17:49:33 +02:00
pm47
75b1098300
used RawHeader class for custom headers
2016-06-24 09:54:50 +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
pm47
54f8e3170f
added custom headers
2016-06-17 17:20:49 +02:00
pm47
9434ea2e42
added payment handlers
2016-06-17 15:25:16 +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