dissable prover for now

This commit is contained in:
Dmitriy Ryajov 2024-02-01 19:02:06 -06:00
parent e8693b7b66
commit eddae1c329
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 13 additions and 6 deletions

View File

@ -3,6 +3,7 @@ import std/times
import pkg/libp2p
import pkg/chronos
import pkg/questionable
import pkg/codex/slots
import pkg/codex/codextypes
@ -70,15 +71,15 @@ template setupAndTearDown*() {.dirty.} =
discovery: DiscoveryEngine
erasure: Erasure
circomBackend: CircomCompat
prover: Prover
prover: ?Prover
let
path = currentSourcePath().parentDir
setup:
file = open(path /../ "" /../ "fixtures" / "test.jpg")
r1cs = path /../ "" /../ "circuits" / "fixtures" / "proofs_main.r1cs"
wasm = path /../ "" /../ "circuits" / "fixtures" / "proofs_main.r1cs"
# r1cs = path /../ "" /../ "circuits" / "fixtures" / "proofs_main.r1cs"
# wasm = path /../ "" /../ "circuits" / "fixtures" / "proofs_main.wasm"
chunker = FileChunker.new(file = file, chunkSize = DefaultBlockSize)
switch = newStandardSwitch()
wallet = WalletRef.new(EthPrivateKey.random())
@ -100,9 +101,15 @@ template setupAndTearDown*() {.dirty.} =
engine = BlockExcEngine.new(localStore, wallet, network, discovery, peerStore, pendingBlocks)
store = NetworkStore.new(engine, localStore)
erasure = Erasure.new(store, leoEncoderProvider, leoDecoderProvider)
circomBackend = CircomCompat.init(r1cs, wasm)
prover = Prover.new(store, circomBackend)
node = CodexNodeRef.new(switch, store, engine, erasure, prover.some, blockDiscovery)
# circomBackend = CircomCompat.init(r1cs, wasm)
# prover = Prover.new(store, circomBackend)
node = CodexNodeRef.new(
switch = switch,
store = store,
engine = engine,
erasure = erasure,
prover = prover,
discovery = blockDiscovery)
await node.start()