Fix slow builds on windows
apparently it takes windows 2-3 seconds to
resolve "localhost" to 127.0.0.1 for every
json-rpc connection that we make 🤦
This commit is contained in:
parent
0410f99981
commit
69122d8aee
|
@ -18,7 +18,7 @@ template ethersuite*(name, body) =
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
ethProvider = JsonRpcProvider.new(
|
ethProvider = JsonRpcProvider.new(
|
||||||
"http://localhost:8545",
|
"http://127.0.0.1:8545",
|
||||||
pollingInterval = chronos.milliseconds(100)
|
pollingInterval = chronos.milliseconds(100)
|
||||||
)
|
)
|
||||||
snapshot = await send(ethProvider, "evm_snapshot")
|
snapshot = await send(ethProvider, "evm_snapshot")
|
||||||
|
|
|
@ -196,7 +196,7 @@ template multinodesuite*(name: string, body: untyped) =
|
||||||
proc startClientNode(conf: CodexConfig): Future[NodeProcess] {.async.} =
|
proc startClientNode(conf: CodexConfig): Future[NodeProcess] {.async.} =
|
||||||
let clientIdx = clients().len
|
let clientIdx = clients().len
|
||||||
var config = conf
|
var config = conf
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://localhost:8545")
|
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://127.0.0.1:8545")
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
||||||
return await newCodexProcess(clientIdx, config, Role.Client)
|
return await newCodexProcess(clientIdx, config, Role.Client)
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ template multinodesuite*(name: string, body: untyped) =
|
||||||
let providerIdx = providers().len
|
let providerIdx = providers().len
|
||||||
var config = conf
|
var config = conf
|
||||||
config.addCliOption("--bootstrap-node", bootstrap)
|
config.addCliOption("--bootstrap-node", bootstrap)
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://localhost:8545")
|
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://127.0.0.1:8545")
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
||||||
config.addCliOption(PersistenceCmd.prover, "--circom-r1cs",
|
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")
|
||||||
|
@ -219,7 +219,7 @@ template multinodesuite*(name: string, body: untyped) =
|
||||||
let validatorIdx = validators().len
|
let validatorIdx = validators().len
|
||||||
var config = conf
|
var config = conf
|
||||||
config.addCliOption("--bootstrap-node", bootstrap)
|
config.addCliOption("--bootstrap-node", bootstrap)
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://localhost:8545")
|
config.addCliOption(StartUpCmd.persistence, "--eth-provider", "http://127.0.0.1:8545")
|
||||||
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
config.addCliOption(StartUpCmd.persistence, "--eth-account", $accounts[running.len])
|
||||||
config.addCliOption(StartUpCmd.persistence, "--validator")
|
config.addCliOption(StartUpCmd.persistence, "--validator")
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ template multinodesuite*(name: string, body: untyped) =
|
||||||
# Do not use websockets, but use http and polling to stop subscriptions
|
# Do not use websockets, but use http and polling to stop subscriptions
|
||||||
# from being removed after 5 minutes
|
# from being removed after 5 minutes
|
||||||
ethProvider = JsonRpcProvider.new(
|
ethProvider = JsonRpcProvider.new(
|
||||||
"http://localhost:8545",
|
"http://127.0.0.1:8545",
|
||||||
pollingInterval = chronos.milliseconds(100)
|
pollingInterval = chronos.milliseconds(100)
|
||||||
)
|
)
|
||||||
# if hardhat was NOT started by the test, take a snapshot so it can be
|
# if hardhat was NOT started by the test, take a snapshot so it can be
|
||||||
|
|
|
@ -43,7 +43,7 @@ template twonodessuite*(name: string, debug1, debug2: string, body) =
|
||||||
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
||||||
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
|
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
|
||||||
"--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
|
"--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
|
||||||
"--eth-provider=http://localhost:8545",
|
"--eth-provider=http://127.0.0.1:8545",
|
||||||
"--eth-account=" & $account1
|
"--eth-account=" & $account1
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ template twonodessuite*(name: string, debug1, debug2: string, body) =
|
||||||
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
"--circom-r1cs=tests/circuits/fixtures/proof_main.r1cs",
|
||||||
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
|
"--circom-wasm=tests/circuits/fixtures/proof_main.wasm",
|
||||||
"--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
|
"--circom-zkey=tests/circuits/fixtures/proof_main.zkey",
|
||||||
"--eth-provider=http://localhost:8545",
|
"--eth-provider=http://127.0.0.1:8545",
|
||||||
"--eth-account=" & $account2
|
"--eth-account=" & $account2
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ suite "tools/cirdl":
|
||||||
test "circuit download tool":
|
test "circuit download tool":
|
||||||
let
|
let
|
||||||
circuitPath = "testcircuitpath"
|
circuitPath = "testcircuitpath"
|
||||||
rpcEndpoint = "http://localhost:8545"
|
rpcEndpoint = "http://127.0.0.1:8545"
|
||||||
marketplaceAddress = Marketplace.address
|
marketplaceAddress = Marketplace.address
|
||||||
|
|
||||||
discard existsOrCreateDir(circuitPath)
|
discard existsOrCreateDir(circuitPath)
|
||||||
|
|
Loading…
Reference in New Issue