Skip to content

Commit 3de73e6

Browse files
committed
Execute locked write for foreign dynstore
Additionally: - replace TestStore with FilesystemStore for ephemeral store - utilize build_with_store_internal for shared runtime [WIP]
1 parent 7a14641 commit 3de73e6

3 files changed

Lines changed: 340 additions & 28 deletions

File tree

src/builder.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,21 @@ impl NodeBuilder {
783783
config.backup.as_ref().map(|s| tier_store.set_backup_store(Arc::clone(s)));
784784
}
785785

786-
self.build_with_store(node_entropy, tier_store)
786+
let seed_bytes = node_entropy.to_seed_bytes();
787+
let config = Arc::new(self.config.clone());
788+
789+
build_with_store_internal(
790+
config,
791+
self.chain_data_source_config.as_ref(),
792+
self.gossip_source_config.as_ref(),
793+
self.liquidity_source_config.as_ref(),
794+
self.pathfinding_scores_sync_config.as_ref(),
795+
self.async_payments_role,
796+
seed_bytes,
797+
runtime,
798+
logger,
799+
Arc::new(DynStoreWrapper(tier_store)),
800+
)
787801
}
788802

789803
/// Builds a [`Node`] instance according to the options previously configured.

0 commit comments

Comments
 (0)