]> git.bitcoin.ninja Git - rust-lightning/commit
Add DecodeError::DangerousValue for decoding invalid channel managers
authorbenthecarman <benthecarman@live.com>
Wed, 27 Mar 2024 18:42:19 +0000 (13:42 -0500)
committerbenthecarman <benthecarman@live.com>
Thu, 28 Mar 2024 17:30:13 +0000 (12:30 -0500)
commit712d97d3fe313ab5d94b191528c72d005a19d80b
tree08f8ce6817c424921ab455f5d7ead1beb7ea1e4f
parent5e41425179d42b68129e3a4dbf01ad11b0bfa435
Add DecodeError::DangerousValue for decoding invalid channel managers

This would help distinguish different types of errors when deserialzing
a channel manager. InvalidValue was used previously but this could be
because it is an old serialization format, whereas DangerousValue is a
lot more clear on why the deserialization failed.
fuzz/src/router.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/reload_tests.rs