This commit is contained in:
William Banfield
2021-09-28 16:10:46 -04:00
parent a3889ee2cb
commit c9b775d2f0
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -15,6 +15,7 @@ message ConsensusParams {
EvidenceParams evidence = 2;
ValidatorParams validator = 3;
VersionParams version = 4;
TimestampParams Params = 5;
}
// BlockParams contains limits on the block size.
@@ -60,6 +61,9 @@ message VersionParams {
uint64 app_version = 1;
}
message TimestampParams {
}
// HashedParams is a subset of ConsensusParams.
//
// It is hashed into the Header.ConsensusHash.
+9
View File
@@ -41,6 +41,7 @@ type ConsensusParams struct {
Evidence EvidenceParams `json:"evidence"`
Validator ValidatorParams `json:"validator"`
Version VersionParams `json:"version"`
Timestamp TimestampParams `json:"timestamp"`
}
// HashedParams is a subset of ConsensusParams.
@@ -65,6 +66,14 @@ type EvidenceParams struct {
MaxBytes int64 `json:"max_bytes"`
}
// TimestampParams define the acceptable amount of clock skew among different
// validators on a network.
type TimestampParams struct {
Accuracy int64 `json:"accuracy"`
Precision time.Duration `json:"precision"`
MessageDelay int64 `json:"message_delay"`
}
// ValidatorParams restrict the public key types validators can use.
// NOTE: uses ABCI pubkey naming, not Amino names.
type ValidatorParams struct {