fix codex
This commit is contained in:
parent
b2f7e417f3
commit
6f0032ef91
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue