Skip to content

Commit 6fe8c12

Browse files
committed
Fix ChannelMonitor round-trip introduced by 3d640da
3d640da changed the indexes for some enums in ChannelMonitor deserialization but not serialization. Thus, the chanmon_deser_target fuzz target failed on travis on at least one PR.
1 parent 4c33197 commit 6fe8c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ impl<ChanSigner: ChannelKeys + Writeable> ChannelMonitor<ChanSigner> {
10241024
for ev in events.iter() {
10251025
match *ev {
10261026
OnchainEvent::HTLCUpdate { ref htlc_update } => {
1027-
writer.write_all(&[1; 1])?;
1027+
0u8.write(writer)?;
10281028
htlc_update.0.write(writer)?;
10291029
htlc_update.1.write(writer)?;
10301030
},

0 commit comments

Comments
 (0)