Matt Corallo
9606f94caf
Stop freeing holding cell in updates, fix freeing in revoke
2018-03-25 17:02:28 -04:00
Matt Corallo
89d9f8fb0e
Fix update_fee handling, add TODOs
2018-03-25 17:02:28 -04:00
Matt Corallo
942d760b83
impl more message decoders
2018-03-25 17:02:28 -04:00
Matt Corallo
d923717216
Expand fake_network_test a bit with multiple in-flight rebalances
2018-03-25 17:02:28 -04:00
Matt Corallo
0795b34e10
Fail payments backwards in delayed processing as well
2018-03-25 13:21:32 -04:00
Matt Corallo
729f02d2dd
Hold channel_state lock into fail_htlc_backwards_internal
2018-03-23 16:57:22 -04:00
Matt Corallo
d8fc9ffde9
DRY up update_add_htlc a bit with macros
2018-03-23 16:56:45 -04:00
Matt Corallo
397b6f90e1
Fix new "uneccessary mut" warning
2018-03-23 15:30:18 -04:00
Matt Corallo
511c5319f1
Merge pull request #15 from TheBlueMatt/master
...
Add fuzz targets, bump bitcoin/secp256k1 deps
2018-03-23 13:35:35 -04:00
Matt Corallo
2188192efa
Set travis to run honggfuzz for a while
2018-03-23 13:16:24 -04:00
Matt Corallo
1d2774dd64
Add some fuzz targets.
...
Sadly none of them are really any good without some hand-holding to
generate good input data, and unless sha256 gets stubbed out I'm
not sure they're gonna get good without a symbolic execution fuzzer
2018-03-23 13:16:24 -04:00
Matt Corallo
02b92f5d5c
Add dummy creator for PendingForwardHTLCInfo
2018-03-23 13:16:24 -04:00
Matt Corallo
ab56b81acd
Stub out Sha256 calls when fuzzing
2018-03-23 13:16:24 -04:00
Matt Corallo
d0a3d0f728
Stub out ChaCha20Poly1305RFC when fuzzing
2018-03-23 13:16:24 -04:00
Matt Corallo
d18e54bd90
Stub out RNG when fuzzing
2018-03-23 13:16:24 -04:00
Matt Corallo
c65bffe568
Add fuzztarget feature, bump bitcoin/secp256k1
2018-03-23 13:16:24 -04:00
Matt Corallo
bceb952b12
Merge pull request #14 from TheBlueMatt/2018-03-fuzz-fixes-1
...
Impl some message deserialization, initial fuzzing-found bug fixes
2018-03-23 13:15:47 -04:00
Matt Corallo
e9b1af277f
Check validity of dust_limit_satoshis in remote messages
2018-03-22 17:43:31 -04:00
Matt Corallo
1bb4f44bd6
Fix reserve check on HTLC receive/send
2018-03-22 17:43:31 -04:00
Matt Corallo
298557c891
impl a bunch of additional messages, remove some useless mut
2018-03-22 17:43:20 -04:00
Matt Corallo
d14e31f512
Remove useless Sha256 copies
2018-03-22 17:42:12 -04:00
Matt Corallo
f47ba769f5
Merge pull request #13 from TheBlueMatt/2018-03-htlc-failures
...
Clarify roles in failing HTLCs, implement most of it
2018-03-22 17:40:07 -04:00
Matt Corallo
40ab09f627
Clarify roles in failing HTLCs, impl it, support rebalances
2018-03-22 17:35:30 -04:00
Matt Corallo
ac3bf5b71d
Fix length requirement in peer_handler msg decode
2018-03-20 16:42:04 -04:00
Matt Corallo
bab89ae5c0
Merge pull request #12 from TheBlueMatt/2018-03-fixes
...
Few random fixes
2018-03-20 14:08:23 -04:00
Matt Corallo
deb23a9309
Allow messages to be too long in accorance with spec
2018-03-20 14:03:33 -04:00
Matt Corallo
4150c281e7
Fix a few bugs in peer_handler
2018-03-19 17:46:37 -04:00
Matt Corallo
4f4c0a8179
Impl a few more msg deserializations, fix a channel panic!() bug
2018-03-19 17:46:37 -04:00
Matt Corallo
df11c05fa6
Use ChainWatchInterfaceUtil directly in tests instead of a wrapper
2018-03-19 17:46:37 -04:00
Matt Corallo
a5ec986fad
Clean up a few comments after #11 merge.
2018-03-19 17:46:35 -04:00
Matt Corallo
ad9dda2eb9
Merge pull request #11 from tamasblummer/chaininterface (squashed)
2018-03-19 16:15:26 -04:00
Tamas Blummer
e87e3774e6
ignore IntelliJ IDEA files
2018-03-19 16:14:19 -04:00
Tamas Blummer
fbe4f7a442
Split out BroadcastInterface, ChainWatchInterface monitors re-enter from called listeners
2018-03-19 16:14:19 -04:00
Matt Corallo
c4e7161c23
Merge pull request #10 from tamasblummer/use_bitcoin_chain
...
use new bitcoin-chain module extracted from bitcoin
2018-03-11 19:26:27 -04:00
Tamas Blummer
f200f26fe2
use new bitcoin-chain module extracted from bitcoin
2018-03-10 15:12:19 +01:00
Matt Corallo
34138a0246
Merge pull request #8 from TheBlueMatt/master
...
Unify license with rust-bitcoin-spv
2018-03-05 15:13:24 -05:00
Matt Corallo
70e01cbd5a
Unify license with rust-bitcoin-spv
2018-03-05 15:09:44 -05:00
Matt Corallo
c867cb927a
Merge pull request #5 from TheBlueMatt/master
...
Add travis config
2018-03-05 14:22:21 -05:00
Matt Corallo
8e482ce9d8
Add travis config
2018-03-05 14:17:42 -05:00
Matt Corallo
f9fc2dfbe2
Merge pull request #3 from RCasatta/fixtry
...
use ? instead of try macro
2018-03-02 11:21:00 -05:00
Riccardo Casatta
b94365f3f5
use ? instead of try macro
2018-03-01 09:54:56 +01:00
Matt Corallo
f2eadb0261
Merge pull request #2 from practicalswift/typos
...
Fix typos
2018-02-28 15:09:01 -05:00
practicalswift
e7d0d8af9f
Fix typos
2018-02-27 23:38:52 +01:00
Matt Corallo
265c083674
Dont expose things that are purely internal-only
2018-02-24 19:59:59 -05:00
Matt Corallo
770740dbcc
Update deps, including significant dep reduction in rust-bitcoin!
2018-02-21 11:35:43 -05:00
Matt Corallo
ef8680349f
Silence warning on essentially-unimplemented chain interface.
2018-02-21 11:35:43 -05:00
Matt Corallo
24e2234be5
Split out channel_monitor_claim_key from shutdown key for privacy
2018-02-21 11:09:22 -05:00
Matt Corallo
4e05b107a3
Add some light docs, rm empty walletinterface (better as events)
2018-02-21 09:49:21 -05:00
Matt Corallo
6185a28190
initial checkin
2018-02-16 18:09:48 -05:00