Merge PR #3372: Limit unbonding delegation / redelegations

This commit is contained in:
frog power 4000
2019-01-24 23:44:31 +01:00
committed by Christopher Goes
parent ccefbc747c
commit dc75eb4eb8
8 changed files with 177 additions and 14 deletions
+4
View File
@@ -101,6 +101,8 @@ This message is expected to fail if:
- the delegation doesn't exist
- the validator doesn't exist
- the delegation has less shares than `SharesAmount`
- existing `UnbondingDelegation` has maximum entries as defined by
params.MaxEntries
When this message is processed the following actions occur:
- validator's `DelegatorShares` and the delegation's `Shares` are both reduced
@@ -143,6 +145,8 @@ This message is expected to fail if:
- the delegation has less shares than `SharesAmount`
- the source validator has a receiving redelegation which
is not matured (aka. the redelegation may be transitive)
- existing `Redelegation` has maximum entries as defined by
params.MaxEntries
When this message is processed the following actions occur:
- the source validator's `DelegatorShares` and the delegations `Shares` are
+1
View File
@@ -28,6 +28,7 @@ and defines overall functioning of the staking module.
type Params struct {
UnbondingTime time.Duration // time duration of unbonding
MaxValidators uint16 // maximum number of validators
MaxEntries uint16 // max entries for either unbonding delegation or redelegation (per pair/trio)
BondDenom string // bondable coin denomination
}
```