Skip to content

Commit

Permalink
Merge pull request #461 from tablelandnetwork/joe/disable-relay-only
Browse files Browse the repository at this point in the history
set AllowTransactionRelay to false in all configs
  • Loading branch information
joewagner authored Feb 16, 2023
2 parents ff8d4a4 + 740364e commit 993716a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,11 @@ func createChainIDStack(
return chains.ChainStack{}, fmt.Errorf("starting event processor: %s", err)
}
return chains.ChainStack{
Store: systemStore,
Registry: registry,
EventProcessor: ep,
AllowTransactionRelay: config.AllowTransactionRelay,
Store: systemStore,
Registry: registry,
EventProcessor: ep,
// TODO: we can remove the AllowTransactionRelay config property entirely in a future PR
AllowTransactionRelay: false,
Close: func(ctx context.Context) error {
log.Info().Int64("chain_id", int64(config.ChainID)).Msg("closing stack...")
defer log.Info().Int64("chain_id", int64(config.ChainID)).Msg("stack closed")
Expand Down
2 changes: 1 addition & 1 deletion docker/deployed/staging/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"Chains": [
{
"Name": "Optimism Goerli",
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"ChainID": 420,
"Registry": {
"EthEndpoint": "wss://opt-goerli.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_OPTIMISM_GOERLI_API_KEY}",
Expand Down
8 changes: 4 additions & 4 deletions docker/deployed/testnet/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{
"Name": "Ethereum Goerli",
"ChainID": 5,
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"Registry": {
"EthEndpoint": "wss://eth-goerli.alchemyapi.io/v2/${VALIDATOR_ALCHEMY_ETHEREUM_GOERLI_API_KEY}",
"ContractAddress": "0xDA8EA22d092307874f30A1F277D1388dca0BA97a"
Expand Down Expand Up @@ -82,7 +82,7 @@
{
"Name": "Polygon Mumbai",
"ChainID": 80001,
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"Registry": {
"EthEndpoint": "wss://polygon-mumbai.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_POLYGON_MUMBAI_API_KEY}",
"ContractAddress": "0x4b48841d4b32C4650E4ABc117A03FE8B51f38F68"
Expand Down Expand Up @@ -110,7 +110,7 @@
{
"Name": "Arbitrum Goerli",
"ChainID": 421613,
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"Registry": {
"EthEndpoint": "wss://arb-goerli.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_ARBITRUM_GOERLI_API_KEY}",
"ContractAddress": "0x033f69e8d119205089Ab15D340F5b797732f646b"
Expand All @@ -137,7 +137,7 @@
},
{
"Name": "Optimism Goerli",
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"ChainID": 420,
"Registry": {
"EthEndpoint": "wss://opt-goerli.g.alchemy.com/v2/${VALIDATOR_ALCHEMY_OPTIMISM_GOERLI_API_KEY}",
Expand Down
2 changes: 1 addition & 1 deletion docker/local/api/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"Name": "Local Hardhat",
"ChainID": 31337,
"AllowTransactionRelay": true,
"AllowTransactionRelay": false,
"Registry": {
"EthEndpoint": "ws://host.docker.internal:8545",
"ContractAddress": "[FILL ME]"
Expand Down

0 comments on commit 993716a

Please sign in to comment.