Skip to content

Commit 6270a8f

Browse files
committed
f more details
1 parent 657bf46 commit 6270a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/util/ser.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ impl Readable for BigSize {
386386
/// The lightning protocol uses u16s for lengths in most cases. As our serialization framework
387387
/// primarily targets that, we must as well. However, because we may serialize objects that have
388388
/// more than 65K entries, we need to be able to store larger values. Thus, we define a variable
389-
/// length integer here that is backwards-compatible but treats 0xffff as "read eight more bytes".
389+
/// length integer here that is backwards-compatible for values < 0xffff. We treat 0xffff as
390+
/// "read eight more bytes".
390391
///
391392
/// To ensure we only have one valid encoding per value, we add 0xffff to values written as eight
392393
/// bytes. Thus, 0xfffe is serialized as 0xfffe, whereas 0xffff is serialized as

0 commit comments

Comments
 (0)