Skip to content

Commit

Permalink
fix: use smallest time for block time (#193)
Browse files Browse the repository at this point in the history
Using the instamine option of ganache confuses the CAS worker and it
waits forever to see the transaction has been mined. This change uses a
block time of 1 second, however in practice this appears to mean a block
every 15 seconds. Faster than once a minute but still not very fast.
  • Loading branch information
nathanielc authored Jun 26, 2024
1 parent 4612921 commit e8a2bdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions operator/src/network/cas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,11 @@ pub fn ganache_stateful_set_spec(
command: Some([
"node",
"/app/dist/node/cli.js",
"--miner.blockTime=0",
"--miner.blockTime=1",
"--mnemonic='move sense much taxi wave hurry recall stairs thank brother nut woman'",
"--networkId=5777",
"-l=80000000",
"--quiet",
"-v",
].map(String::from).to_vec()),
image: Some("trufflesuite/ganache".to_owned()),
image_pull_policy: Some("IfNotPresent".to_owned()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Request {
"command": [
"node",
"/app/dist/node/cli.js",
"--miner.blockTime=0",
"--miner.blockTime=1",
"--mnemonic='move sense much taxi wave hurry recall stairs thank brother nut woman'",
"--networkId=5777",
"-l=80000000",
"--quiet"
"-v"
],
"image": "trufflesuite/ganache",
"imagePullPolicy": "IfNotPresent",
Expand Down

0 comments on commit e8a2bdc

Please sign in to comment.