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>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commit5894543117b7d6f49f64b25ba5e50c447074fc41
tree0e270d26bbbb846a30f3172ceb91f4adda8fd210
parent8e82808b0f366ceab0bdd751feef5f5709a68bb9
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