Skip to content

Commit dfefdd3

Browse files
enable floodsub, update p2p discovery namespace, update registry address mapping to assets
1 parent 8988ed4 commit dfefdd3

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

package_variants/chiado/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- "24003:24003"
1212
- "27656:27656"
1313
- "27660:27660"
14-
- "9200:9200"
14+
- "9200:9100"
1515

1616
metrics:
1717
build:

package_variants/gnosis/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
- "24003:24003"
1212
- "27656:27656"
1313
- "27660:27660"
14-
- "9200:9200"
14+
- "9200:9100"
1515

1616
metrics:
1717
build:

shutter/go-shutter-settings/settings/keyper.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type KeyperConfig struct {
1111
DatabaseURL string `env:"SHUTTER_DATABASEURL"`
1212
BeaconAPIURL string `env:"SHUTTER_BEACONAPIURL"`
1313
MaxNumKeysPerMessage int `env:"_ASSETS_MAX_NUM_KEYS_PER_MESSAGE"`
14-
Chain struct {
14+
Chain struct {
1515
EncryptedGasLimit int `env:"_ASSETS_ENCRYPTED_GAS_LIMIT"`
1616
MaxTxPointerAge int `env:"_ASSETS_MAX_TX_POINTER_AGE"`
1717
GenesisSlotTimestamp int `env:"_ASSETS_GENESIS_SLOT_TIMESTAMP"`
@@ -25,15 +25,18 @@ type KeyperConfig struct {
2525
Contracts struct {
2626
KeyperSetManager string `env:"_ASSETS_KEYPER_SET_MANAGER"`
2727
KeyBroadcastContract string `env:"_ASSETS_KEY_BROADCAST_CONTRACT"`
28-
ShutterRegistry string `env:"_ASSETS_SHUTTER_REGISTRY"`
28+
ShutterRegistry string `env:"_ASSETS_SHUTTERREGISTRY"`
2929
}
3030
}
3131
P2P struct {
3232
P2PKey string `env:"SHUTTER_P2P_KEY"`
3333
ListenAddresses []string `env:"SHUTTER_P2P_LISTENADDRESSES"`
3434
AdvertiseAddresses []string `env:"SHUTTER_P2P_ADVERTISEADDRESSES"`
3535
CustomBootstrapAddresses []string `env:"_ASSETS_CUSTOM_BOOTSTRAP_ADDRESSES"`
36-
DiscoveryNamespace string `env:"_ASSETS_DISCOVERY_NAME_PREFIX"`
36+
DiscoveryNamespace string `env:"SHUTTER_DISCOVERY_NAMESPACE"`
37+
FloodSubDiscovery struct {
38+
Enabled bool `env:"FLOODSUB_DISCOVERY_ENABLED"`
39+
}
3740
}
3841
Shuttermint struct {
3942
ShuttermintURL string `env:"SHUTTER_SHUTTERMINT_SHUTTERMINTURL"`

shutter/scripts/configure_keyper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS}
2020
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
2121
export VALIDATOR_PUBLIC_KEY=$(cat "${SHUTTER_CHAIN_DIR}/config/priv_validator_pubkey.hex")
2222
export SHUTTER_METRICS_ENABLED=${SHUTTER_PUSH_METRICS_ENABLED}
23+
export FLOODSUB_DISCOVERY_ENABLED=true
24+
export SHUTTER_DISCOVERY_NAMESPACE="${_ASSETS_DISCOVERY_NAME_PREFIX}-${_ASSETS_INSTANCE_ID}"
2325

2426
echo "[INFO | configure] LISTEN: $SHUTTER_P2P_LISTENADDRESSES"
2527

0 commit comments

Comments
 (0)