Commit graph

8306 commits

Author SHA1 Message Date
Matt Corallo
1d1ebbb290
Merge pull request #26 from TheBlueMatt/master
Small style tweaks for new message targets for my own style preferences
2018-05-13 13:54:29 -04:00
Matt Corallo
03d07bf73d Update msg_target_template to note auto-generation 2018-05-13 13:28:47 -04:00
Matt Corallo
98af41ba29 Fix indentation in fuzz_target utils 2018-05-13 13:23:22 -04:00
Matt Corallo
ce382c0979 Make travis check that msg_targets match the template 2018-05-13 13:23:22 -04:00
Matt Corallo
eccd527a55
Merge pull request #24 from yuntai/master
fill decode/encode routines for many messages with fuzz targets
2018-05-13 13:13:01 -04:00
Yuntai Kyong
913ea887fe add fuzz target for messages
[[bin]] section for each new target in Cargo.toml
glob chanbes in travis-fuzz.sh
2018-05-13 05:22:55 +09:00
Yuntai Kyong
e2ff3393ea add script to generate msg test target 2018-05-13 05:10:23 +09:00
Yuntai Kyong
7822af8bd1 Update dependency on secp256k1 pointing to https://github.com/rust-bitcoin/rust-secp256k1 2018-05-12 14:30:26 +09:00
Yuntai Kyong
fb1bf30263 filling unimplemented!() for many messages' encoding/decoding routines 2018-05-12 14:30:26 +09:00
Yuntai Kyong
dda8414161 add .gitignore 2018-05-12 14:30:26 +09:00
Matt Corallo
4a9d3a5c0a
Merge pull request #25 from TheBlueMatt/master
Fix channel_target crash fp
2018-05-10 10:56:22 -04:00
Matt Corallo
cff3ae5f26 Make channel_target return as channelmanager removes on shutdown 2018-05-10 10:39:20 -04:00
Matt Corallo
22342134ef Some with_capacity's 2018-04-26 19:45:36 -04:00
Matt Corallo
0707220ec7
Merge pull request #23 from TheBlueMatt/master
Fix repo link in Cargo
2018-04-26 19:45:23 -04:00
Matt Corallo
a31d67474c Fix repo link in Cargo 2018-04-26 17:35:09 -04:00
Matt Corallo
e13a46c867
Merge pull request #22 from TheBlueMatt/master
Bump version for API changes.
2018-04-26 12:19:40 -04:00
Matt Corallo
c564f9fd59 Bump version for API changes. 2018-04-26 11:40:48 -04:00
Matt Corallo
3057df2656
Merge pull request #21 from TheBlueMatt/master
Begin handling errors/tx broadcasts robustly
2018-04-26 11:37:46 -04:00
Matt Corallo
a20eef17c9 Fix local route update broadcasts, annouce channel closures 2018-04-24 20:42:24 -04:00
Matt Corallo
2d8afeccdb Rewrite channelmonitor framework and implement a bunch of it 2018-04-24 20:42:24 -04:00
Matt Corallo
7400b3bb7c Fix some channel remove channelmanager consistency bugs 2018-04-24 16:01:14 -04:00
Matt Corallo
8e2974fc2a HTLC Failure message handling 2018-04-24 11:55:08 -04:00
Matt Corallo
53d1518566 Move ChannelKeys creation into channelmanager 2018-04-17 12:43:12 -04:00
Matt Corallo
4fbe0c90b8
Merge pull request #20 from TheBlueMatt/master
Rewrite parts of channel, cleanup a bunch of stuff
2018-04-16 22:03:35 -04:00
Matt Corallo
1ec9c3aa4b Provide fallback for crypto's fixed_time_eq on non-x86/arm targets 2018-04-16 20:35:21 -04:00
Matt Corallo
4d75d4c099 Minor cleanups 2018-04-16 20:35:21 -04:00
Matt Corallo
f5ca346011 Fix commitment transaction number/per_commitment_point tracking 2018-04-16 20:35:21 -04:00
Matt Corallo
0940db25ec Refactor channelmanager network tests significantly 2018-04-16 20:35:21 -04:00
Matt Corallo
e9f9cda986 impl more message encodings 2018-04-16 20:35:21 -04:00
Matt Corallo
374ea1f05e Completely rewrite channel HTLC tracking and processing
It obviously was nonsensical prior, though its now way more
complicated...there's refactoring work to be done here, but it
should at least kinda sorta work now.
2018-04-16 20:35:21 -04:00
Matt Corallo
e2b1b1be78 Prep HTLCFailReason for Channel holding it until revoke_and_ack 2018-04-16 20:35:21 -04:00
Matt Corallo
00c6f42452 Use libbitcoinconsensus to check tx validity in some tests 2018-04-16 20:35:19 -04:00
Matt Corallo
8b1a7ede27 Test that channel monitors get updated appropriately 2018-04-16 20:35:03 -04:00
Matt Corallo
021b3643cc Hand payment preimages into channel monitors when claimed 2018-04-16 20:35:03 -04:00
Matt Corallo
1ae603cc3d Switch back to crates.io rust-bitcoin for 0.13 release 2018-04-16 20:35:03 -04:00
Matt Corallo
69eb59b24d
Merge pull request #19 from TheBlueMatt/2018-04-error-handling-framework
Clean up peer_handler error handling a bit, clean up channel error handling a ton
2018-04-02 19:43:46 -04:00
Matt Corallo
9ccfb358b4 Fix travis-fuzz upgrade-handling 2018-04-02 18:42:41 -04:00
Matt Corallo
644119201d Remove useless htlc_redeemscript argument 2018-04-02 18:31:23 -04:00
Matt Corallo
e79e61f595 Clean up channel error handling a ton 2018-04-02 18:31:23 -04:00
Matt Corallo
91b964ae1f Basic error handling framework in peer_handler 2018-04-02 18:31:23 -04:00
Matt Corallo
4fbc0b3768 Require Init as first message, send our own Init for outbound 2018-04-02 18:31:23 -04:00
Matt Corallo
df9367adaf Rename ErrorMessage 2018-04-02 18:31:23 -04:00
Matt Corallo
24fd566567
Merge pull request #18 from TheBlueMatt/2018-04-fuzzing-expansion
Expand full_stack_target from uselessly-large to laughably-large
2018-04-02 18:27:23 -04:00
Matt Corallo
f7dd69240a
Merge pull request #17 from TheBlueMatt/2017-04-channel-close
Add support for channel closure (based on new upstream rust-bitcoin)
2018-04-02 18:14:24 -04:00
Matt Corallo
b21048a1ce Check funding txout format when transaction is confirmed in channel 2018-04-02 18:07:03 -04:00
Matt Corallo
187ca8c0c8 Make Channel non-public except in fuzztarget mode, bump version 2018-04-02 18:07:03 -04:00
Matt Corallo
f452403a3f Fix a small bug in peer_handler 2018-04-02 18:07:03 -04:00
Matt Corallo
cf6308a5ae Expose event-processing loop from peer_handler. 2018-04-02 18:07:03 -04:00
Matt Corallo
7b0a25bdce Fix message decoding for features, build some encoding 2018-04-02 18:07:03 -04:00
Matt Corallo
8e79c05a20 Add support for initiating channel closure to Channel{,Manager} 2018-04-02 18:07:03 -04:00