From 073c3ea487bdcc475c24b855beec485f0868da13 Mon Sep 17 00:00:00 2001 From: g11tech Date: Sat, 15 Jul 2023 00:23:44 +0530 Subject: [PATCH] fix: lower the block production wait cutoff time for timely proposal publish (#5760) --- packages/validator/src/services/block.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/validator/src/services/block.ts b/packages/validator/src/services/block.ts index b83c239b62e8..29f3bb5588b8 100644 --- a/packages/validator/src/services/block.ts +++ b/packages/validator/src/services/block.ts @@ -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;