Skip to content

Commit

Permalink
add reset priority height flag
Browse files Browse the repository at this point in the history
  • Loading branch information
zsystm committed Aug 13, 2024
1 parent 38e909f commit b448bdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cmd/cantod/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"errors"
"fmt"
"io"
"math"
"os"

"cosmossdk.io/simapp/params"
Expand Down Expand Up @@ -178,6 +179,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {

// add rosetta
rootCmd.AddCommand(rosettacmd.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Codec))
rootCmd.PersistentFlags().Int64Var(&cbfttypes.PriorityResetHeight, "reset-priority-height", math.MaxInt64, "reset priority height")
rootCmd.PersistentFlags().Int64Var(&cbfttypes.PriorityResetHeightInterval, "reset-priority-height-interval", 100, "reset priority height interval")
rootCmd.PersistentFlags().Int32Var(&cbfttypes.PriorityResetRoundInterval, "reset-priority-round-interval", 20, "reset priority round interval")
return rootCmd, encodingConfig
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ require (
replace (
cosmossdk.io/core => cosmossdk.io/core v0.11.0
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
github.com/cometbft/cometbft => github.com/b-harvest/cometbft v0.38.7-0.20240813100520-1c84414198b8
github.com/cometbft/cometbft => github.com/b-harvest/cometbft v0.38.7-0.20240813111838-f355fccb8621
github.com/evmos/ethermint => github.com/b-harvest/ethermint v0.22.0-sdk50-1
// replace broken goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX
github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ=
github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/b-harvest/cometbft v0.38.7-0.20240813100520-1c84414198b8 h1:x+YGWLKSKk4IY7vHGoalkx3vzTfVGuMuTVirwejI+Hs=
github.com/b-harvest/cometbft v0.38.7-0.20240813100520-1c84414198b8/go.mod h1:xOoGZrtUT+A5izWfHSJgl0gYZUE7lu7Z2XIS1vWG/QQ=
github.com/b-harvest/cometbft v0.38.7-0.20240813111838-f355fccb8621 h1:36FLrJRi/zHtimcuU1PJAjQ8ch4ZncZo4w9NL+1w9G0=
github.com/b-harvest/cometbft v0.38.7-0.20240813111838-f355fccb8621/go.mod h1:xOoGZrtUT+A5izWfHSJgl0gYZUE7lu7Z2XIS1vWG/QQ=
github.com/b-harvest/ethermint v0.22.0-sdk50-1 h1:SO88tJZcsIMQ8LAnfjvKPM4cHUCEt4cVIpSoxkhDLDA=
github.com/b-harvest/ethermint v0.22.0-sdk50-1/go.mod h1:oJHa7P91tmQpDx0rVfEmuSHFBntnsWvMcgjbm11hzaY=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
Expand Down

0 comments on commit b448bdc

Please sign in to comment.