Skip to content

Commit a165c01

Browse files
committed
f clarify serialization change restriction comment
1 parent 5a370e6 commit a165c01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/msgs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,13 +1231,15 @@ impl_writeable_msg!(UpdateFulfillHTLC, {
12311231
}, {});
12321232

12331233
// Note that this is written as a part of ChannelManager objects, and thus cannot change its
1234-
// serialization format in a non-backwards-compatible way.
1234+
// serialization format in a way which assumes we know the total serialized length/message end
1235+
// position..
12351236
impl_writeable!(OnionErrorPacket, {
12361237
data
12371238
});
12381239

12391240
// Note that this is written as a part of ChannelManager objects, and thus cannot change its
1240-
// serialization format in a non-backwards-compatible way.
1241+
// serialization format in a way which assumes we know the total serialized length/message end
1242+
// position..
12411243
impl Writeable for OnionPacket {
12421244
fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
12431245
self.version.write(w)?;

0 commit comments

Comments
 (0)