From 546eacee4e5b1c892ef78a23c4bd5383b47f1da4 Mon Sep 17 00:00:00 2001 From: Arham Jain Date: Thu, 24 Oct 2024 20:50:52 +0530 Subject: [PATCH] fix(patches): updated local setting patches --- local_fast_refresh.patch | 11 ++++++----- local_tests.patch | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/local_fast_refresh.patch b/local_fast_refresh.patch index 825c8447..a050a71e 100644 --- a/local_fast_refresh.patch +++ b/local_fast_refresh.patch @@ -1,14 +1,15 @@ diff --git a/src/config.ts b/src/config.ts ---- a/src/config.ts (revision e0fd622f7257642c37243f3da9303dfaa55c1872) -+++ b/src/config.ts (date 1713205409743) -@@ -131,8 +131,8 @@ +index a633cf3..8c3df19 100644 +--- a/src/config.ts ++++ b/src/config.ts +@@ -135,8 +135,8 @@ export const CONFIG: Config = { explorerUrl: process.env.EXPLORER_URL || 'http://127.0.0.1:6001', queryFromExplorer: false, generateTxTimestamp: true, -- nodelistRefreshInterval: 30000, +- nodelistRefreshInterval: Number(process.env.NODELIST_REFRESH_INTERVAL) || 30000, - defaultRequestRetry: 5, + nodelistRefreshInterval: 5000, + defaultRequestRetry: 10, - gasEstimateMethod: 'serviceValidator', //serviceValidator or replayEngine or validator + gasEstimateMethod: process.env.GAS_ESTIMATE_METHOD || 'serviceValidator', //serviceValidator or replayEngine or validator gasEstimateInvalidationIntervalInMs: 1000 * 60 * 60 * 2, // 2 hours gasEstimateUseCache: false, diff --git a/local_tests.patch b/local_tests.patch index b32522c3..edacdc7f 100644 --- a/local_tests.patch +++ b/local_tests.patch @@ -1,16 +1,16 @@ diff --git a/src/config.ts b/src/config.ts -index db6061c4..712ab94f 100644 +index a633cf3..1c398bb 100644 --- a/src/config.ts +++ b/src/config.ts -@@ -134,10 +134,10 @@ export const CONFIG: Config = { +@@ -137,10 +137,10 @@ export const CONFIG: Config = { generateTxTimestamp: true, - nodelistRefreshInterval: 30000, + nodelistRefreshInterval: Number(process.env.NODELIST_REFRESH_INTERVAL) || 30000, defaultRequestRetry: 5, -- gasEstimateMethod: 'serviceValidator', //serviceValidator or replayEngine or validator +- gasEstimateMethod: process.env.GAS_ESTIMATE_METHOD || 'serviceValidator', //serviceValidator or replayEngine or validator + gasEstimateMethod: 'replayEngine', //serviceValidator or replayEngine or validator gasEstimateInvalidationIntervalInMs: 1000 * 60 * 60 * 2, // 2 hours gasEstimateUseCache: false, -- staticGasEstimate: '0x5B8D80', // comment out rather than delete this line +- staticGasEstimate: process.env.STATIC_GAS_ESTIMATE || '0x5B8D80', // comment out rather than delete this line + staticGasEstimate: '0x2DC6C0', // comment out rather than delete this line defaultRequestTimeout: { default: 2000,