Skip to content

Commit a5d0767

Browse files
committed
Drop Readable/Writeable for InFlightHtlcs
Its not clear why this needs to be serialized at all (it should generally always be generated live when needed), but its serialization isn't forward-compatible, so really needs to be dropped so that we can add additional field(s) to `InFlightHtlcs`.
1 parent 66e59f9 commit a5d0767

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lightning/src/routing/router.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -416,19 +416,6 @@ impl InFlightHtlcs {
416416
}
417417
}
418418

419-
impl Writeable for InFlightHtlcs {
420-
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), io::Error> {
421-
self.unblinded_hops.write(writer)
422-
}
423-
}
424-
425-
impl Readable for InFlightHtlcs {
426-
fn read<R: io::Read>(reader: &mut R) -> Result<Self, DecodeError> {
427-
let unblinded_hops: HashMap<(u64, bool), u64> = Readable::read(reader)?;
428-
Ok(Self { unblinded_hops })
429-
}
430-
}
431-
432419
/// A hop in a route, and additional metadata about it. "Hop" is defined as a node and the channel
433420
/// that leads to it.
434421
#[derive(Clone, Debug, Hash, PartialEq, Eq)]

0 commit comments

Comments
 (0)