Refuse to deserialize OnionHopDatas with values > 21 million
authorMatt Corallo <git@bluematt.me>
Thu, 2 Jan 2020 02:13:48 +0000 (21:13 -0500)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Mar 2020 04:26:16 +0000 (23:26 -0500)
commit51be7c870fa1f171caee0cbabe5ac268c041d60c
treee0acfd63a3c3077047ab4e90c96bf66ef90e5f7e
parent712bf064c2c69713304c2f2da4ebd58bf4d6c6ac
Refuse to deserialize OnionHopDatas with values > 21 million

We should probably do this for all values (and define a newtype
for msat values), but this will do for now.
lightning/src/ln/msgs.rs