Savil Srivastava
4c44b787f1
use hex::decode instead of extend_vec_from_hex
2018-07-28 10:09:29 -07:00
Antoine Riard
1c12e83941
Implement ErrorMessage msg and ErrorAction::SendErrorMessage + fuzz test
2018-07-23 14:31:44 -04:00
Savil Srivastava
0c1f47807a
[msgs::ChannelReestablish] implement encoding and decoding
...
Summary:
Implementing these, taking inspiration from the surrounding code since i'm a rust n00b.
Test Plan:
```
cargo build
cargo test channel_reestablish
```
output:
```
running 3 tests
test ln::msgs::tests::encoding_channel_reestablish_with_secret ... ok
test ln::msgs::tests::decode_channel_reestablish_bad_length ... ok
test ln::msgs::tests::encoding_channel_reestablish_no_secret ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 14 filtered out
```
2018-07-22 23:26:47 -04:00
Savil Srivastava
dee4ce5171
[fuzz] remove \L in sed regex for filenames in gen_target.sh
...
Summary:
on `master` branch, if i ran `gen_target.sh` i would get the following output:
https://gist.github.com/savil/2b3114eaf34c3ef8499b65005e374841
Without it, I get the files generated that are already checked-in (as expected).
Looking at the sed docs (https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html ) i don't see an explanation for what `\L` may do in whatever regex sed follows. Does this look correct? cc @yuntai
2018-07-20 23:00:31 -07:00
Matt Corallo
4de3cfe665
Fix message targets to not have an internal loop
2018-06-16 23:26:56 -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
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