]> git.bitcoin.ninja Git - rust-lightning/commit
BOLT2: Check we don't send and accept 0-msat HTLC
authorAntoine Riard <ariard@student.42.fr>
Fri, 21 Feb 2020 00:20:29 +0000 (19:20 -0500)
committerAntoine Riard <ariard@student.42.fr>
Tue, 10 Mar 2020 17:05:30 +0000 (13:05 -0400)
commitd1c6f235f9e432785150bd72c6ba6731e8f75c85
tree909f32f263f18bf708e6a693577b923d83c4ac60
parent83c9eb4b9e0a461fee980fc6cc01d1b72597b2fa
BOLT2: Check we don't send and accept 0-msat HTLC

Failing this requirement at sending means a strict receiver would
fail our channel while processing a HTLC routed from a third-party.

Fix by enforcing check on both sender and receiver side.
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs