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>
Tue, 14 Apr 2020 23:54:17 +0000 (19:54 -0400)
commit1442acf74b7fee98cfff950353a75f569932fbc9
treeafca84a4339a67e5d9e3a34cf78a380e366c0bbf
parentb54817397d62817d806d2ac266617ef30709d1d3
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