Merge PR #3505: add json tags to auth params and fix tags in slashing
This commit is contained in:
parent
d50f3ee4fb
commit
9f30bfdbd9
@ -34,11 +34,11 @@ var _ params.ParamSet = &Params{}
|
||||
|
||||
// Params defines the parameters for the auth module.
|
||||
type Params struct {
|
||||
MaxMemoCharacters uint64
|
||||
TxSigLimit uint64 // max total number of signatures per tx
|
||||
TxSizeCostPerByte uint64
|
||||
SigVerifyCostED25519 uint64
|
||||
SigVerifyCostSecp256k1 uint64
|
||||
MaxMemoCharacters uint64 `json:"max_memo_characters"`
|
||||
TxSigLimit uint64 `json:"tx_sig_limit"`
|
||||
TxSizeCostPerByte uint64 `json:"tx_size_cost_per_byte"`
|
||||
SigVerifyCostED25519 uint64 `json:"sig_verify_cost_ed25519"`
|
||||
SigVerifyCostSecp256k1 uint64 `json:"sig_verify_cost_secp256k1"`
|
||||
}
|
||||
|
||||
// ParamTable for staking module
|
||||
|
||||
@ -35,12 +35,12 @@ func ParamKeyTable() params.KeyTable {
|
||||
|
||||
// Params - used for initializing default parameter for slashing at genesis
|
||||
type Params struct {
|
||||
MaxEvidenceAge time.Duration `json:"max-evidence-age"`
|
||||
SignedBlocksWindow int64 `json:"signed-blocks-window"`
|
||||
MinSignedPerWindow sdk.Dec `json:"min-signed-per-window"`
|
||||
DowntimeJailDuration time.Duration `json:"downtime-jail-duration"`
|
||||
SlashFractionDoubleSign sdk.Dec `json:"slash-fraction-double-sign"`
|
||||
SlashFractionDowntime sdk.Dec `json:"slash-fraction-downtime"`
|
||||
MaxEvidenceAge time.Duration `json:"max_evidence_age"`
|
||||
SignedBlocksWindow int64 `json:"signed_blocks_window"`
|
||||
MinSignedPerWindow sdk.Dec `json:"min_signed_per_window"`
|
||||
DowntimeJailDuration time.Duration `json:"downtime_jail_duration"`
|
||||
SlashFractionDoubleSign sdk.Dec `json:"slash_fraction_double_sign"`
|
||||
SlashFractionDowntime sdk.Dec `json:"slash_fraction_downtime"`
|
||||
}
|
||||
|
||||
func (p Params) String() string {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user