fix codex

This commit is contained in:
Jaremy Creechley 2024-05-20 22:45:01 +03:00
parent b2f7e417f3
commit 6f0032ef91
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 4 additions and 3 deletions

View File

@ -264,11 +264,14 @@ proc new*(
interval = config.blockMaintenanceInterval,
numberOfBlocksPerInterval = config.blockMaintenanceNumberOfBlocks)
taskpool = Taskpool.new(num_threads = countProcessors())
peerStore = PeerCtxStore.new()
pendingBlocks = PendingBlocksManager.new()
blockDiscovery = DiscoveryEngine.new(repoStore, peerStore, network, discovery, pendingBlocks)
engine = BlockExcEngine.new(repoStore, wallet, network, blockDiscovery, peerStore, pendingBlocks)
store = NetworkStore.new(engine, repoStore)
prover = if config.prover:
if not fileAccessible($config.circomR1cs, {AccessFlags.Read}) and
endsWith($config.circomR1cs, ".r1cs"):
@ -294,13 +297,11 @@ proc new*(
let params = CircomCompatParams.init($config.circomR1cs, $config.circomWasm, zkey)
some Prover.new(
store, AsyncCircomCompat.init(params),
store, AsyncCircomCompat.init(params, taskpool),
config.numProofSamples)
else:
none Prover
taskpool = Taskpool.new(num_threads = countProcessors())
codexNode = CodexNodeRef.new(
switch = switch,
networkStore = store,