diff --git a/codex/codex.nim b/codex/codex.nim index a0d36437..ee3a9739 100644 --- a/codex/codex.nim +++ b/codex/codex.nim @@ -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)