From face51cf6174f033a31d84f022c9e6e2cc990697 Mon Sep 17 00:00:00 2001 From: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:00:40 +0100 Subject: [PATCH] imp: Reduce delta height (#22) * move delta height to constants * reduce delta height to 10 blocks --- main.go | 5 +---- utils/constants.go | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) 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 )