Use TLV instead of explicit length for VecReadWrapper termination
authorMatt Corallo <git@bluematt.me>
Sun, 30 May 2021 23:24:43 +0000 (23:24 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 1 Jun 2021 21:53:06 +0000 (21:53 +0000)
commitb385a40e4aadace8bd6646c42c6c662b8f1901e9
treec310cea82e2573646c990ec9fad269ca6f326537
parentccc828412ee59cd007d889ce125654ed7e22bea7
Use TLV instead of explicit length for VecReadWrapper termination

VecReadWrapper is only used in TLVs so there is no need to prepend
a length before writing/reading the objects - we can instead simply
read until we reach the end of the TLV stream.
lightning/src/ln/msgs.rs
lightning/src/util/ser.rs