]> git.bitcoin.ninja Git - rust-lightning/commit
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 16:22:50 +0000 (16:22 +0000)
commitb06a5afd5a07fcb5d446a38f8930ed3258f50c09
tree3a1e3cf0363a66b659f174b8d06e593dff2490cf
parent4992955ad395b3276f5fe509dd2331218ad4534a
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