use correct stores

This commit is contained in:
Dmitriy Ryajov 2024-02-16 15:54:45 -06:00
parent 42d4a5c234
commit d1b2b96383
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 1 additions and 4 deletions

View File

@ -257,8 +257,6 @@ proc new*(
blockDiscovery = DiscoveryEngine.new(repoStore, peerStore, network, discovery, pendingBlocks)
engine = BlockExcEngine.new(repoStore, wallet, network, blockDiscovery, peerStore, pendingBlocks)
store = NetworkStore.new(engine, repoStore)
erasure = Erasure.new(store, leoEncoderProvider, leoDecoderProvider)
prover = if config.prover:
if not fileAccessible($config.circomR1cs, {AccessFlags.Read}) and
endsWith($config.circomR1cs, ".r1cs"):
@ -291,9 +289,8 @@ proc new*(
codexNode = CodexNodeRef.new(
switch = switch,
store = store,
networkStore = store,
engine = engine,
erasure = erasure,
prover = prover,
discovery = discovery)