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>
Mon, 3 Feb 2020 02:38:53 +0000 (21:38 -0500)
commit9b5226d48323957203bf0dfbf8253825c7957cfc
tree4f67146433d2804ed8f19732f063e876a78e4ef7
parentb935b37ee5ce40d6f77c201e90b0b9a8dc353551
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