Skip to content

Commit 6866d3a

Browse files
committed
Make monitor update name public
These structs are meant for MonitoringUpdatingPersister implementation, but some external implementations may still reuse them, so going to make them public.
1 parent 81923c7 commit 6866d3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/util/persist.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ where
861861

862862
/// A struct representing a name for a monitor.
863863
#[derive(Debug)]
864-
struct MonitorName(String);
864+
pub struct MonitorName(String);
865865

866866
impl MonitorName {
867867
/// Constructs a [`MonitorName`], after verifying that an [`OutPoint`] can
@@ -917,7 +917,7 @@ impl From<OutPoint> for MonitorName {
917917

918918
/// A struct representing a name for an update.
919919
#[derive(Debug)]
920-
struct UpdateName(u64, String);
920+
pub struct UpdateName(u64, String);
921921

922922
impl UpdateName {
923923
/// Constructs an [`UpdateName`], after verifying that an update sequence ID

0 commit comments

Comments
 (0)