]> git.bitcoin.ninja Git - rust-lightning/commit
Implement `HashMap` read for `MaybeReadable` values
authorMatt Corallo <git@bluematt.me>
Sun, 3 Oct 2021 00:46:10 +0000 (00:46 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 22 Oct 2021 18:41:42 +0000 (18:41 +0000)
commitf5b6e7f58a108ae2394bda4ef98650cb4a50597e
tree10b79b4b0a402f01453e96dfbb907c52a3f7de30
parentfcb178faeb84494dc7a2b00aacf2973b5a302612
Implement `HashMap` read for `MaybeReadable` values

This allows us to read a `HashMap` that has values which may be
skipped if they are some backwards-compatibility type.

We also take this opportunity to fail deserialization if keys are
duplicated.
lightning/src/util/ser.rs