]> git.bitcoin.ninja Git - rust-lightning/commit
[msgs::ChannelReestablish] implement encoding and decoding 2018-07-68-rebased
authorSavil Srivastava <savil@cs.stanford.edu>
Sat, 21 Jul 2018 00:24:14 +0000 (17:24 -0700)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Jul 2018 03:26:47 +0000 (23:26 -0400)
commit0c1f47807a772a69e2a11d0752f54291505ad002
tree348c9cb03ccf9c7a04d29a599f8b179f1a92e446
parentadd1d9d9e54bcc33a21ff486ca7785eef4ffb120
[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
```
fuzz/Cargo.toml
fuzz/fuzz_targets/msg_targets/gen_target.sh
fuzz/fuzz_targets/msg_targets/msg_channel_reestablish_target.rs [new file with mode: 0644]
src/ln/msgs.rs