Skip to content

Commit 1bae740

Browse files
committed
Move ChannelManager::default_configuration behind a RwLock
In the next commit we'll add the ability to update the default configuration used for new channels and which controls some global decisions in the `ChannelManager`. However, first, we have to put it behind a mutex so that it can be updated at runtime, which we do here. We also take this opportunity to rename `default_configuration` to simply `config`, since it has been more than only the default configuration for new channels for some time.
1 parent bbfc694 commit 1bae740

File tree

5 files changed

+87
-56
lines changed

5 files changed

+87
-56
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
771771
router: &router,
772772
message_router: &router,
773773
logger,
774-
default_config: config,
774+
config,
775775
channel_monitors: monitor_refs,
776776
};
777777

0 commit comments

Comments
 (0)