Skip to content

Commit 94aefc2

Browse files
committed
feat: implement signer registration repeater delay in infra
1 parent 8a27962 commit 94aefc2

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

mithril-infra/assets/docker/docker-compose-signer-unverified-p2p.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
- SERVER_PORT=${SIGNER_RELAY_SERVER_PORT}
9090
- AGGREGATOR_ENDPOINT=http://${AGGREGATOR_CREDENTIALS}mithril-aggregator:8080/aggregator
9191
- DIAL_TO=/dns4/mithril-aggregator-relay/tcp/${AGGREGATOR_RELAY_LISTEN_PORT}
92+
- SIGNER_REPEATER_DELAY=${SIGNER_RELAY_REGISTRATION_REPEATER_DELAY}
9293
ports:
9394
- "${SIGNER_RELAY_LISTEN_PORT}:${SIGNER_RELAY_LISTEN_PORT}"
9495
- "${SIGNER_RELAY_SERVER_PORT}:${SIGNER_RELAY_SERVER_PORT}"

mithril-infra/assets/docker/docker-compose-signer-verified-p2p.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ services:
147147
- SERVER_PORT=${SIGNER_RELAY_SERVER_PORT}
148148
- AGGREGATOR_ENDPOINT=http://${AGGREGATOR_CREDENTIALS}mithril-aggregator:8080/aggregator
149149
- DIAL_TO=/dns4/mithril-aggregator-relay/tcp/${AGGREGATOR_RELAY_LISTEN_PORT}
150+
- SIGNER_REPEATER_DELAY=${SIGNER_RELAY_REGISTRATION_REPEATER_DELAY}
150151
ports:
151152
- "${SIGNER_RELAY_LISTEN_PORT}:${SIGNER_RELAY_LISTEN_PORT}"
152153
- "${SIGNER_RELAY_SERVER_PORT}:${SIGNER_RELAY_SERVER_PORT}"

mithril-infra/mithril.signer.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ EOT
8585
"export AGGREGATOR_RELAY_LISTEN_PORT='${local.mithril_aggregator_relay_mithril_listen_port}'",
8686
"export SIGNER_RELAY_LISTEN_PORT='${local.mithril_signers_relay_listen_port[each.key]}'",
8787
"export SIGNER_RELAY_SERVER_PORT='${local.mithril_signers_relay_server_port[each.key]}'",
88+
"export SIGNER_RELAY_REGISTRATION_REPEATER_DELAY='${var.mithril_p2p_signer_registration_repeat_delay}'",
8889
"export ENABLE_METRICS_SERVER=true",
8990
"export METRICS_SERVER_IP=0.0.0.0",
9091
"export METRICS_SERVER_PORT=9090",

mithril-infra/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ variable "mithril_use_p2p_network" {
178178
default = false
179179
}
180180

181+
variable "mithril_p2p_signer_registration_repeat_delay" {
182+
type = number
183+
description = "The repeat delay in milliseconds for the signer registration when operating in P2P mode (defaults to 1 hour)"
184+
default = 3600 * 1000
185+
}
186+
181187
locals {
182188
mithril_network_type_suffix = var.mithril_use_p2p_network ? "-p2p" : ""
183189
}

0 commit comments

Comments
 (0)