Skip to content

Commit

Permalink
Gov fix (#761)
Browse files Browse the repository at this point in the history
* Fix general proposal of gov module

* Update upgrade handler

* Revert gov ConsensusVersion
  • Loading branch information
skyargos committed Aug 28, 2023
1 parent 1fc3571 commit 52a96fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrade_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
upgradeName = "v2.7.0"
upgradeName = "v2.7.2"
)

func (app ShentuApp) setUpgradeHandler() {
Expand Down
4 changes: 4 additions & 0 deletions x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ func processSecurityVote(ctx sdk.Context, k keeper.Keeper, proposal govtypes.Pro
)
logger := k.Logger(ctx)

// Only process security proposals
if !k.HasSecurityVoting(proposal) {
return false
}
// Only process proposals in the security voting period.
if k.HasSecurityVoting(proposal) && k.GetCertifierVoted(ctx, proposal.ProposalId) {
return false
Expand Down

0 comments on commit 52a96fe

Please sign in to comment.