diff --git a/lib/config.js b/lib/config.js index 59c6f14..0909da4 100644 --- a/lib/config.js +++ b/lib/config.js @@ -70,6 +70,6 @@ function getRelayerConfig() { cacheDir: path_1.default.join(STATIC_DIR, './events'), userEventsDir: path_1.default.join(USER_DIR, './events'), userTreeDir: path_1.default.join(USER_DIR, './trees'), - syncInterval: Number(process_1.default.env.SYNC_INTERVAL || 180), + syncInterval: Number(process_1.default.env.SYNC_INTERVAL || 120), }; } diff --git a/lib/services/sync.js b/lib/services/sync.js index ec1ca11..09120a6 100644 --- a/lib/services/sync.js +++ b/lib/services/sync.js @@ -119,7 +119,7 @@ async function syncGasPrice(syncManager, netId) { const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([ provider.getBlockNumber(), provider.getBalance(rewardAccount), - tornadoFeeOracle.gasPrice(), + tornadoFeeOracle.gasPrice(20), tornadoFeeOracle.fetchL1OptimismFee(), ]); cachedGasPrices[netId] = { diff --git a/package.json b/package.json index 386d165..d07bfcd 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "license": "MIT", "dependencies": { "@fastify/cors": "^10.0.1", - "@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2", + "@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce", "bloomfilter.js": "^1.0.2", "dotenv": "^16.4.5", "fastify": "^5.0.0", diff --git a/src/config.ts b/src/config.ts index 0d2266d..f2efae5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -98,6 +98,6 @@ export function getRelayerConfig(): RelayerConfig { cacheDir: path.join(STATIC_DIR, './events'), userEventsDir: path.join(USER_DIR, './events'), userTreeDir: path.join(USER_DIR, './trees'), - syncInterval: Number(process.env.SYNC_INTERVAL || 180), + syncInterval: Number(process.env.SYNC_INTERVAL || 120), }; } diff --git a/src/services/sync.ts b/src/services/sync.ts index 5953723..d7aba76 100644 --- a/src/services/sync.ts +++ b/src/services/sync.ts @@ -263,7 +263,7 @@ export async function syncGasPrice(syncManager: SyncManager, netId: NetIdType) { const [blockNumber, balance, gasPrice, l1Fee] = await Promise.all([ provider.getBlockNumber(), provider.getBalance(rewardAccount), - tornadoFeeOracle.gasPrice(), + tornadoFeeOracle.gasPrice(20), tornadoFeeOracle.fetchL1OptimismFee(), ]); diff --git a/yarn.lock b/yarn.lock index 838e33c..a584b35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -690,9 +690,9 @@ "@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0" ethers "^6.13.4" -"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2": +"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce": version "1.0.19" - resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#68fcf07c2a344a1f7f74895301f362aa059b53e2" + resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#23378921954f04fc4f48ae3b95f5a05d5bc953ce" dependencies: "@ensdomains/content-hash" "2.5.7" "@metamask/eth-sig-util" "^8.0.0"