diff --git a/main.go b/main.go index d4103a3..afed69c 100644 --- a/main.go +++ b/main.go @@ -11,9 +11,6 @@ import ( "github.com/pkg/errors" ) -// The amount of blocks in the future that the upgrade will be scheduled. -const deltaHeight = 15 - func main() { if len(os.Args) < 2 { log.Printf( @@ -91,7 +88,7 @@ func upgradeLocalNode(bin *utils.Binary, targetVersion string) error { return errors.Wrap(err, "Error getting current height") } - upgradeHeight := currentHeight + deltaHeight + upgradeHeight := currentHeight + utils.DeltaHeight log.Println("Submitting upgrade proposal...") diff --git a/utils/constants.go b/utils/constants.go index 9e8aaa8..85c96c5 100644 --- a/utils/constants.go +++ b/utils/constants.go @@ -7,6 +7,8 @@ import ( const ( // The amount of fees to be sent with a default transaction. defaultFees int = 1e18 // 1 aevmos + // The amount of blocks in the future that the upgrade will be scheduled. + DeltaHeight = 10 // The denomination used for the local node. denom = evmosutils.BaseDenom )