Merge PR #3957: Remove requirement that deposit period and voting period linked
This commit is contained in:
parent
160928b8f3
commit
f9c290f42e
|
@ -92,11 +92,6 @@ func ValidateGenesis(data GenesisState) error {
|
||||||
veto.String())
|
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() {
|
if !data.DepositParams.MinDeposit.IsValid() {
|
||||||
return fmt.Errorf("Governance deposit amount must be a valid sdk.Coins amount, is %s",
|
return fmt.Errorf("Governance deposit amount must be a valid sdk.Coins amount, is %s",
|
||||||
data.DepositParams.MinDeposit.String())
|
data.DepositParams.MinDeposit.String())
|
||||||
|
|
Loading…
Reference in New Issue