Skip to content

Commit 65d71cd

Browse files
authored
Merge pull request #1670 from TheBlueMatt/2022-08-mon-size-guidelines
Provide guidance on ChannelMonitorUpdate serialized size
2 parents dc54c58 + 36e9725 commit 65d71cd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,13 @@ use core::convert::TryInto;
5959
use core::ops::Deref;
6060
use sync::Mutex;
6161

62-
/// An update generated by the underlying Channel itself which contains some new information the
63-
/// ChannelMonitor should be made aware of.
62+
/// An update generated by the underlying channel itself which contains some new information the
63+
/// [`ChannelMonitor`] should be made aware of.
64+
///
65+
/// Because this represents only a small number of updates to the underlying state, it is generally
66+
/// much smaller than a full [`ChannelMonitor`]. However, for large single commitment transaction
67+
/// updates (e.g. ones during which there are hundreds of HTLCs pending on the commitment
68+
/// transaction), a single update may reach upwards of 1 MiB in serialized size.
6469
#[cfg_attr(any(test, fuzzing, feature = "_test_utils"), derive(PartialEq))]
6570
#[derive(Clone)]
6671
#[must_use]

0 commit comments

Comments
 (0)