Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

proto: merge the proposer-based timestamps parameters #393

Merged
merged 9 commits into from
Feb 2, 2022
16 changes: 16 additions & 0 deletions proto/tendermint/types/params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message ConsensusParams {
EvidenceParams evidence = 2;
ValidatorParams validator = 3;
VersionParams version = 4;
SynchronyParams synchrony = 5;
}

// BlockParams contains limits on the block size.
Expand Down Expand Up @@ -65,3 +66,18 @@ message HashedParams {
int64 block_max_bytes = 1;
int64 block_max_gas = 2;
}

// SynchronyParams configure the bounds under which a proposed block's timestamp is considered valid.
// These parameters are part of the proposer-based timestamps algorithm. For more information,
// see the specification of proposer-based timestamps:
// https://github.com/tendermint/spec/tree/master/spec/consensus/proposer-based-timestamp
message SynchronyParams {
// message_delay bounds how long a proposal message may take to reach all validators on a newtork
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation here appears a little wonky. Tabs?

// and still be considered valid.
google.protobuf.Duration message_delay = 1
[(gogoproto.stdduration) = true];
// precision bounds how skewed a proposer's clock may be from any validator
// on the network while still producing valid proposals.
google.protobuf.Duration precision = 2
[(gogoproto.stdduration) = true];
}