Merge PR #3957: Remove requirement that deposit period and voting period linked

This commit is contained in:
Jack Zampolin 2019-03-22 13:47:04 -07:00 committed by GitHub
parent 160928b8f3
commit f9c290f42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -92,11 +92,6 @@ func ValidateGenesis(data GenesisState) error {
veto.String())
}
if data.DepositParams.MaxDepositPeriod > data.VotingParams.VotingPeriod {
return fmt.Errorf("Governance deposit period should be less than or equal to the voting period (%ds), is %ds",
data.VotingParams.VotingPeriod, data.DepositParams.MaxDepositPeriod)
}
if !data.DepositParams.MinDeposit.IsValid() {
return fmt.Errorf("Governance deposit amount must be a valid sdk.Coins amount, is %s",
data.DepositParams.MinDeposit.String())