mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 22:43:12 +00:00
formatting
trying to make nph happy
This commit is contained in:
parent
910af93dab
commit
a7fd01c3de
@ -68,6 +68,12 @@ const
|
||||
DefaultMaxPeersPerRequest* = 10
|
||||
DefaultTaskQueueSize = 100
|
||||
DefaultConcurrentTasks = 10
|
||||
# DefaultMaxRetries = 3
|
||||
# DefaultConcurrentDiscRequests = 10
|
||||
# DefaultConcurrentAdvertRequests = 10
|
||||
# DefaultDiscoveryTimeout = 1.minutes
|
||||
# DefaultMaxQueriedBlocksCache = 1000
|
||||
# DefaultMinPeersPerBlock = 3
|
||||
|
||||
type
|
||||
TaskHandler* = proc(task: BlockExcPeerCtx): Future[void] {.gcsafe.}
|
||||
|
||||
@ -77,15 +77,13 @@ asyncchecksuite "Test proof sampler utils":
|
||||
)
|
||||
|
||||
proc getExpectedIndices(n: int): seq[Natural] =
|
||||
return collect(
|
||||
newSeq,
|
||||
return collect(newSeq):
|
||||
(;
|
||||
for i in 1 .. n:
|
||||
cellIndex(
|
||||
proofInput.entropy, proofInput.slotRoot, proofInput.nCellsPerSlot, i
|
||||
)
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
check:
|
||||
slotCellIndices(3) == getExpectedIndices(3)
|
||||
|
||||
@ -169,7 +169,8 @@ proc withLogFile*(self: CodexConfigs): CodexConfigs {.raises: [CodexConfigError]
|
||||
|
||||
proc withLogFile*(
|
||||
self: var CodexConfig, logFile: string
|
||||
) {.raises: [CodexConfigError].} = #: CodexConfigs =
|
||||
) {.raises: [CodexConfigError].} =
|
||||
#: CodexConfigs =
|
||||
## typically called internally from the test suite, sets a log file path to
|
||||
## be created during the test run, for a specified node in the group
|
||||
# var config = self
|
||||
|
||||
@ -219,15 +219,15 @@ template multinodesuite*(name: string, body: untyped) =
|
||||
)
|
||||
config.addCliOption(
|
||||
PersistenceCmd.prover, "--circom-r1cs",
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.r1cs"
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.r1cs",
|
||||
)
|
||||
config.addCliOption(
|
||||
PersistenceCmd.prover, "--circom-wasm",
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.wasm"
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.wasm",
|
||||
)
|
||||
config.addCliOption(
|
||||
PersistenceCmd.prover, "--circom-zkey",
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.zkey"
|
||||
"vendor/codex-contracts-eth/verifier/networks/hardhat/proof_main.zkey",
|
||||
)
|
||||
|
||||
return await newCodexProcess(providerIdx, config, Role.Provider)
|
||||
|
||||
@ -21,7 +21,7 @@ asyncchecksuite "Command line interface":
|
||||
args.concat(
|
||||
@[
|
||||
"--api-port=" & $(await nextFreePort(8080 + nodeCount)),
|
||||
"--disc-port=" & $(await nextFreePort(8090 + nodeCount))
|
||||
"--disc-port=" & $(await nextFreePort(8090 + nodeCount)),
|
||||
]
|
||||
),
|
||||
debug = false,
|
||||
@ -40,7 +40,7 @@ asyncchecksuite "Command line interface":
|
||||
@[
|
||||
"persistence",
|
||||
"--eth-provider=" & "http://127.0.0.1:" & $HardhatPort,
|
||||
"--eth-private-key=" & unsafeKeyFile
|
||||
"--eth-private-key=" & unsafeKeyFile,
|
||||
]
|
||||
)
|
||||
await node.waitUntilOutput(
|
||||
@ -66,7 +66,7 @@ asyncchecksuite "Command line interface":
|
||||
"--eth-provider=" & "http://127.0.0.1:" & $HardhatPort,
|
||||
"prover",
|
||||
marketplaceArg,
|
||||
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs"
|
||||
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
||||
]
|
||||
)
|
||||
await node.waitUntilOutput(expectedDownloadInstruction)
|
||||
@ -80,7 +80,7 @@ asyncchecksuite "Command line interface":
|
||||
"prover",
|
||||
marketplaceArg,
|
||||
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
||||
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm"
|
||||
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
|
||||
]
|
||||
)
|
||||
await node.waitUntilOutput(expectedDownloadInstruction)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user