diff --git a/docs/config.md b/docs/config.md index d51839d24..ecb988b07 100644 --- a/docs/config.md +++ b/docs/config.md @@ -110,13 +110,6 @@ WebSocket endpoint for the blockchain RPC provider. * **Type:** `string` -## `CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER` - -The deployment block for the input box contract. -The node will begin to read blockchain events from this block. - -* **Type:** `int64` - ## `CARTESI_CONTRACTS_APPLICATION_ADDRESS` Address of the DApp's contract. @@ -147,6 +140,13 @@ Address of the InputBox contract. * **Type:** `string` +## `CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER` + +The deployment block for the input box contract. +The node will begin to read blockchain events from this block. + +* **Type:** `int64` + ## `CARTESI_EXPERIMENTAL_SERVER_MANAGER_BYPASS_LOG` When enabled, prints server-manager output to stdout and stderr directly. diff --git a/internal/node/config/generate/Config.toml b/internal/node/config/generate/Config.toml index 3e5bdf273..175b2c754 100644 --- a/internal/node/config/generate/Config.toml +++ b/internal/node/config/generate/Config.toml @@ -1,10 +1,8 @@ # (c) Cartesi and individual authors (see AUTHORS) # SPDX-License-Identifier: Apache-2.0 (see LICENSE) - # # Logging # - [logging.CARTESI_LOG_LEVEL] default = "info" go-type = "LogLevel" @@ -123,7 +121,7 @@ go-type = "string" description = """ Address of the InputBox contract.""" -[blockchain.CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER] +[contracts.CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER] go-type = "int64" description = """ The deployment block for the input box contract. diff --git a/internal/node/config/generated.go b/internal/node/config/generated.go index af23edbb6..3c9ba6138 100644 --- a/internal/node/config/generated.go +++ b/internal/node/config/generated.go @@ -269,18 +269,6 @@ func getBlockchainWsEndpoint() string { return val } -func getContractsInputBoxDeploymentBlockNumber() int64 { - s, ok := os.LookupEnv("CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER") - if !ok { - panic("missing env var CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER") - } - val, err := toInt64(s) - if err != nil { - panic(fmt.Sprintf("failed to parse CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER: %v", err)) - } - return val -} - func getContractsApplicationAddress() string { s, ok := os.LookupEnv("CARTESI_CONTRACTS_APPLICATION_ADDRESS") if !ok { @@ -341,6 +329,18 @@ func getContractsInputBoxAddress() string { return val } +func getContractsInputBoxDeploymentBlockNumber() int64 { + s, ok := os.LookupEnv("CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER") + if !ok { + panic("missing env var CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER") + } + val, err := toInt64(s) + if err != nil { + panic(fmt.Sprintf("failed to parse CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER: %v", err)) + } + return val +} + func getExperimentalServerManagerBypassLog() bool { s, ok := os.LookupEnv("CARTESI_EXPERIMENTAL_SERVER_MANAGER_BYPASS_LOG") if !ok {