Skip to content

Commit

Permalink
fix: port our default consensus power (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
daeMOn63 authored May 4, 2021
1 parent 34830ac commit 139c6e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x/staking/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
defaultCommissionRate = "0.1"
defaultCommissionMaxRate = "0.2"
defaultCommissionMaxChangeRate = "0.01"
defaultMinSelfDelegation = "1"
defaultMinSelfDelegation = "1000000000000000000"
)

// NewTxCmd returns a root CLI command handler for all x/staking transaction commands.
Expand Down
10 changes: 5 additions & 5 deletions x/staking/client/cli/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestPrepareConfigForTxCreateValidator(t *testing.T) {
CommissionRate: "0.1",
CommissionMaxRate: "0.2",
CommissionMaxChangeRate: "0.01",
MinSelfDelegation: "1",
MinSelfDelegation: defaultMinSelfDelegation,
},
},
{
Expand All @@ -55,7 +55,7 @@ func TestPrepareConfigForTxCreateValidator(t *testing.T) {
CommissionRate: "0.1",
CommissionMaxRate: "0.2",
CommissionMaxChangeRate: "0.01",
MinSelfDelegation: "1",
MinSelfDelegation: defaultMinSelfDelegation,
},
},
{
Expand All @@ -73,7 +73,7 @@ func TestPrepareConfigForTxCreateValidator(t *testing.T) {
CommissionRate: "0.54",
CommissionMaxRate: "0.2",
CommissionMaxChangeRate: "0.01",
MinSelfDelegation: "1",
MinSelfDelegation: defaultMinSelfDelegation,
},
},
{
Expand All @@ -91,7 +91,7 @@ func TestPrepareConfigForTxCreateValidator(t *testing.T) {
CommissionRate: "0.1",
CommissionMaxRate: "0.89",
CommissionMaxChangeRate: "0.01",
MinSelfDelegation: "1",
MinSelfDelegation: defaultMinSelfDelegation,
},
},
{
Expand All @@ -109,7 +109,7 @@ func TestPrepareConfigForTxCreateValidator(t *testing.T) {
CommissionRate: "0.1",
CommissionMaxRate: "0.2",
CommissionMaxChangeRate: "0.55",
MinSelfDelegation: "1",
MinSelfDelegation: defaultMinSelfDelegation,
},
},
{
Expand Down

0 comments on commit 139c6e3

Please sign in to comment.