Skip to content

Commit edd92e5

Browse files
authored
Merge pull request #189 from MrXJC/gog/jiacheng
update gog parameters
2 parents c98369e + fe54007 commit edd92e5

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# source = "https://github.com/irisnet/cosmos-sdk.git"
3232
# version = "=v0.23.0-iris1"
3333
source = "https://github.com/irisnet/cosmos-sdk.git"
34-
branch = "irisnet/hotfix-v0.23.0-iris2"
34+
branch = "irisnet/gog"
3535

3636
[[override]]
3737
name = "github.com/golang/protobuf"

app/app.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ func (app *IrisApp) initChainer(ctx sdk.Context, req abci.RequestInitChain) abci
182182
gov.InitGenesis(ctx, app.govKeeper, gov.GenesisState{
183183
StartingProposalID: 1,
184184
DepositProcedure: gov.DepositProcedure{
185-
MinDeposit: sdk.Coins{sdk.Coin{Denom: "iris", Amount: sdk.NewInt(int64(10)).Mul(gov.Pow10(18))}},
186-
MaxDepositPeriod: 40,
185+
MinDeposit: sdk.Coins{sdk.Coin{Denom: "iris", Amount: sdk.NewInt(int64(1000)).Mul(gov.Pow10(18))}},
186+
MaxDepositPeriod: 1440,
187187
},
188188
VotingProcedure: gov.VotingProcedure{
189-
VotingPeriod: 40,
189+
VotingPeriod: 20000,
190190
},
191191
TallyingProcedure: gov.TallyingProcedure{
192192
Threshold: sdk.NewRat(1, 2),

modules/gov/handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ func EndBlocker(ctx sdk.Context, keeper Keeper) (tags sdk.Tags, nonVotingVals []
105105
inactiveProposal := keeper.InactiveProposalQueuePop(ctx)
106106
if inactiveProposal.GetStatus() == StatusDepositPeriod {
107107
proposalIDBytes := keeper.cdc.MustMarshalBinaryBare(inactiveProposal.GetProposalID())
108+
keeper.RefundDeposits(ctx, inactiveProposal.GetProposalID())
108109
keeper.DeleteProposal(ctx, inactiveProposal)
109110
tags.AppendTag("action", []byte("proposalDropped"))
110111
tags.AppendTag("proposalId", proposalIDBytes)

version/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import (
77
)
88

99
// Version - Iris Version
10-
const Version = "0.4.0-GOG"
10+
const Version = "Game Of Genesis"
1111

1212
func GetCmdVersion(storeName string, cdc *wire.Codec) *cobra.Command {
1313
cmd := &cobra.Command{
1414
Use: "version",
1515
Short: "Show version info",
1616
RunE: func(cmd *cobra.Command, args []string) error {
1717

18-
fmt.Printf("v%s\n", Version)
18+
fmt.Printf("%s\n", Version)
1919
return nil
2020
},
2121
}

0 commit comments

Comments
 (0)