Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions mithril-aggregator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ pub struct Args {
#[clap(short, long, default_value = "dev")]
run_mode: String,

/// Snapshot interval, in seconds
/// Defaults to 4 hours
#[clap(long, default_value_t = 14400)]
snapshot_interval: u32,
/// Runtime interval, in seconds
/// Defaults to 10 minutes
#[clap(long, default_value_t = 600)]
runtime_interval: u32,

/// Directory to snapshot
#[clap(long, default_value = "/db")]
Expand Down Expand Up @@ -150,7 +150,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let snapshot_directory = config.snapshot_directory.clone();
let handle = tokio::spawn(async move {
let runtime = AggregatorRuntime::new(
args.snapshot_interval * 1000,
args.runtime_interval * 1000,
config.network.clone(),
config.db_directory.clone(),
snapshot_directory,
Expand Down
8 changes: 4 additions & 4 deletions mithril-infra/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
- NETWORK=testnet
- PARTY_ID=0
- RUN_INTERVAL=2
- RUN_INTERVAL=60000
- DB_DIRECTORY=/db
volumes:
- ./testnet/node.db:/db
Expand All @@ -77,7 +77,7 @@ services:
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
- NETWORK=testnet
- PARTY_ID=1
- RUN_INTERVAL=2
- RUN_INTERVAL=60000
- DB_DIRECTORY=/db
volumes:
- ./testnet/node.db:/db
Expand All @@ -94,7 +94,7 @@ services:
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
- NETWORK=testnet
- PARTY_ID=2
- RUN_INTERVAL=2
- RUN_INTERVAL=60000
- DB_DIRECTORY=/db
volumes:
- ./testnet/node.db:/db
Expand All @@ -111,7 +111,7 @@ services:
- AGGREGATOR_ENDPOINT=http://mithril-aggregator:8080/aggregator
- NETWORK=testnet
- PARTY_ID=3
- RUN_INTERVAL=2
- RUN_INTERVAL=60000
- DB_DIRECTORY=/db
volumes:
- ./testnet/node.db:/db
Expand Down
2 changes: 1 addition & 1 deletion mithril-signer/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ RUN chown -R appuser /app/ && chmod a+x /app/bin/mithril-signer
USER appuser

# Run the executable
ENTRYPOINT ["/app/bin/mithril-signer"]
ENTRYPOINT ["/app/bin/mithril-signer","-vv"]
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ aggregatorProcess cwd port = do
]
<> baseEnv
unlessM (doesFileExist aggregator) $ failure $ "cannot find mithril-aggregator executable in expected location (" <> binDir <> ")"
pure $ (proc aggregator ["--db-directory", "db", "--server-port", show port, "--snapshot-interval", "5", "-vvv"]) {cwd, env}
pure $ (proc aggregator ["--db-directory", "db", "--server-port", show port, "--runtime-interval", "5", "-vvv"]) {cwd, env}
2 changes: 1 addition & 1 deletion mithril-test-lab/mithril-end-to-end/src/Mithril/Signer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ signerProcess cwd aggregatorEndpoint = do
[ ("AGGREGATOR_ENDPOINT", toString aggregatorEndpoint),
("NETWORK", "testnet"),
("PARTY_ID", "0"),
("RUN_INTERVAL", "2"),
("RUN_INTERVAL", "2000"),
("DB_DIRECTORY", "db")
]
<> baseEnv
Expand Down