From 7228f4004a90edebf99336afc8e683234ddb9808 Mon Sep 17 00:00:00 2001 From: Gabriel de Quadros Ligneul Date: Thu, 18 Jan 2024 11:41:44 -0300 Subject: [PATCH] refactor: removed default deployment block This value depends on the network, so we shouldn't add a default that won't work most of the time. --- docs/config.md | 1 - internal/config/generate/Config.toml | 1 - internal/config/get.go | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/config.md b/docs/config.md index 5b9b8d733..561328e8f 100644 --- a/docs/config.md +++ b/docs/config.md @@ -83,7 +83,6 @@ The deployment block for the input box contract. The node will begin to read blockchain events from this block. * **Type:** `int64` -* **Default:** `"1"` ### `CARTESI_CONTRACTS_AUTHORITY_ADDRESS` Address of the Authority contract. diff --git a/internal/config/generate/Config.toml b/internal/config/generate/Config.toml index ab0872e19..206abce7a 100644 --- a/internal/config/generate/Config.toml +++ b/internal/config/generate/Config.toml @@ -119,7 +119,6 @@ description = """ Address of the InputBox contract.""" [blockchain.CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER] -default = "1" go-type = "int64" description = """ The deployment block for the input box contract. diff --git a/internal/config/get.go b/internal/config/get.go index 6c9d0233c..24ab1c4f0 100644 --- a/internal/config/get.go +++ b/internal/config/get.go @@ -70,7 +70,7 @@ func GetCartesiBlockchainWsEndpoint() string { } func GetCartesiContractsInputBoxDeploymentBlockNumber() int64 { - v := get("CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER", "1", true, false, toInt64) + v := get("CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER", "", false, false, toInt64) return v }