Skip to content

Commit

Permalink
imp: Reduce delta height (#22)
Browse files Browse the repository at this point in the history
* move delta height to constants

* reduce delta height to 10 blocks
  • Loading branch information
MalteHerrmann committed Oct 30, 2023
1 parent 4158d56 commit face51c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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...")

Expand Down
2 changes: 2 additions & 0 deletions utils/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit face51c

Please sign in to comment.