]> git.bitcoin.ninja Git - rust-lightning/commit
Add assertions to ensure we don't use an invalid package_amount
authorMatt Corallo <git@bluematt.me>
Wed, 26 May 2021 15:47:29 +0000 (15:47 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 28 May 2021 23:56:44 +0000 (23:56 +0000)
commitf492a192ff6c076985bfb665c99f4589604cd6ae
treee020ce5a9dc3bad208cecd30ed89838ee0fc2974
parentdf829a85263e0bc675ca696c0f6ff0a49d89e623
Add assertions to ensure we don't use an invalid package_amount

This somewhat cleans up the public API of PackageSolvingData to
make it harder to get an invalid amount and use it, adding further
debug assertion to check it at test-time.
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs