Skip to content

Commit

Permalink
rebased develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Jul 26, 2018
1 parent c6af61a commit 874440c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 45 deletions.
32 changes: 16 additions & 16 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions x/gov/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,6 @@ func (keeper Keeper) activateVotingPeriod(ctx sdk.Context, proposal Proposal) {
// =====================================================
// Procedures

<<<<<<< HEAD
var (
defaultMinDeposit int64 = 10
defaultMaxDepositPeriod int64 = 10000
defaultVotingPeriod int64 = 10000
)

// Gets procedure from store. TODO: move to global param store and allow for updating of this
func (keeper Keeper) GetDepositProcedure() DepositProcedure {
return DepositProcedure{
MinDeposit: sdk.Coins{sdk.NewCoin("steak", defaultMinDeposit)},
MaxDepositPeriod: defaultMaxDepositPeriod,
}
}

// Gets procedure from store. TODO: move to global param store and allow for updating of this
func (keeper Keeper) GetVotingProcedure() VotingProcedure {
return VotingProcedure{
VotingPeriod: defaultVotingPeriod,
}
=======
// Returns the current Deposit Procedure from the global param store
func (keeper Keeper) GetDepositProcedure(ctx sdk.Context) DepositProcedure {
var depositProcedure DepositProcedure
Expand All @@ -173,7 +152,6 @@ func (keeper Keeper) GetVotingProcedure(ctx sdk.Context) VotingProcedure {
var votingProcedure VotingProcedure
keeper.ps.Get(ctx, ParamStoreKeyVotingProcedure, &votingProcedure)
return votingProcedure
>>>>>>> moved governance parameters to globalparams store and can be set in genesis
}

// Returns the current Tallying Procedure from the global param store
Expand Down
7 changes: 0 additions & 7 deletions x/gov/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// overwrite defaults for testing
func init() {
defaultMinDeposit = 10
defaultMaxDepositPeriod = 200
defaultVotingPeriod = 200
}

func TestGetSetProposal(t *testing.T) {
mapp, keeper, _, _, _, _ := getMockApp(t, 0)
mapp.BeginBlock(abci.RequestBeginBlock{})
Expand Down

0 comments on commit 874440c

Please sign in to comment.