mirror of
https://github.com/serai-dex/serai.git
synced 2025-04-02 12:29:03 +00:00
Correct the Duration timing
The proposer will build it, send it, then process it (on the first round). Accordingly, it's / 3, not / 2, as / 2 only accounted for the latter events.
This commit is contained in:
parent
32ad6de00c
commit
ecde185bbf
1 changed files with 5 additions and 2 deletions
|
@ -130,8 +130,11 @@ impl<T: TendermintValidator> TendermintAuthority<T> {
|
|||
.propose(
|
||||
self.import.inherent_data(parent).await,
|
||||
Digest::default(),
|
||||
// Assumes a block cannot take longer to download than it'll take to process
|
||||
Duration::from_secs((T::BLOCK_PROCESSING_TIME_IN_SECONDS / 2).into()),
|
||||
// The first processing time is to build the block.
|
||||
// The second is for it to be downloaded (assumes a block won't take longer to download
|
||||
// than it'll take to process)
|
||||
// The third is for it to actually be processed
|
||||
Duration::from_secs((T::BLOCK_PROCESSING_TIME_IN_SECONDS / 3).into()),
|
||||
Some(T::PROPOSED_BLOCK_SIZE_LIMIT),
|
||||
)
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue