File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1347,13 +1347,7 @@ where
13471347 K : EntropySource + SignerProvider < EcdsaSigner = InMemorySigner > ,
13481348{
13491349 if let Some ( manager_bytes) = & migration. channel_manager {
1350- // Existence-only check (no deserialization). Unlike monitors, we cannot
1351- // deserialize the channel manager here because ChannelManagerReadArgs
1352- // requires already-deserialized channel_monitor_references, which are
1353- // loaded later in build(). This means corrupt existing data will block
1354- // migration — that is intentional: overwriting a potentially valid
1355- // channel manager with stale FS data risks fund loss, while a node that
1356- // refuses to start can be recovered by clearing the KV store.
1350+ // Skip if KV store already has a channel manager (existence-only check).
13571351 let should_write = match runtime. block_on ( KVStore :: read (
13581352 & * * kv_store,
13591353 CHANNEL_MANAGER_PERSISTENCE_PRIMARY_NAMESPACE ,
You can’t perform that action at this time.
0 commit comments