Skip to content

Commit

Permalink
fix: lower the block production wait cutoff time for timely proposal …
Browse files Browse the repository at this point in the history
…publish (#5760)
  • Loading branch information
g11tech committed Jul 14, 2023
1 parent 57f1324 commit cdca9fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/validator/src/services/block.ts
Expand Up @@ -38,8 +38,12 @@ const MAX_DECIMAL_FACTOR = BigInt("100000");
/**
* Cutoff time to wait for execution and builder block production apis to resolve
* Post this time, race execution and builder to pick whatever resolves first
*
* Emprically the builder block resolves in ~1.5+ seconds, and executon should resolve <1 sec.
* So lowering the cutoff to 2 sec from 3 seconds to publish faster for successful proposal
* as proposals post 4 seconds into the slot seems to be not being included
*/
const BLOCK_PRODUCTION_RACE_CUTOFF_MS = 3_000;
const BLOCK_PRODUCTION_RACE_CUTOFF_MS = 2_000;
/** Overall timeout for execution and block production apis */
const BLOCK_PRODUCTION_RACE_TIMEOUT_MS = 12_000;

Expand Down

0 comments on commit cdca9fb

Please sign in to comment.