diff --git a/config/default.json b/config/default.json index b4f436ec..c438a831 100644 --- a/config/default.json +++ b/config/default.json @@ -1,6 +1,6 @@ { "boot": { - "fundRelayers": true + "fundRelayers": false }, "health": { "checkRelayers": false @@ -9,17 +9,9 @@ "validate": true }, "supportedNetworks": [ - 1, 137, 97, 56, 1101, 42161, 42170, 10, 43113, 43114, 8453, 59144, 5000, - 204, 5611, 88888, 592, 88882, 81, 1115, 1116, 169, 1715, 9980, 421614, - 11155111, 84532, 168587773, 81457, 534351, 534352, 56400, 7000, 11155420, - 80002, 27827, 4653, 8101902, 666666666, 2442, 7001, 5003, 100, 10200, 195, - 196, 2810, 997, 3799, 167009, 80084, 5845, 167000, 1328, 1329, 995, 28882, - 288, 920637907288165, 1740, 1750, 4202, 1135, 2818, 146, 57054, 10143 - ], - "supportedNetworksV07": [ - 1, 11155420, 84532, 8453, 10, 56, 42161, 137, 100, 80084, 168587773, 81457, - 11155111, 146, 57054, 10143, 80002, 421614, 97, 10200 + 43113, 43114, 27827, 56400, 88888, 88882 ], + "supportedNetworksV07": [], "EIP1559SupportedNetworks": [ 1, 137, 42161, 10, 43114, 43113, 8453, 59144, 204, 5611, 421614, 11155111, 84532, 168587773, 81457, 42170, 169, 56400, 11155420, 80002, 27827, 4653, diff --git a/src/common/service-manager/index.ts b/src/common/service-manager/index.ts index 27ef5f14..095521ea 100644 --- a/src/common/service-manager/index.ts +++ b/src/common/service-manager/index.ts @@ -474,8 +474,11 @@ async function setupRelayerManagers( ); /* - UNSAFE: Disable funding relayers for testing purposes or local devenv. - This is enabled by default but you can set it to false if you want to run smoke tests for example + UNSAFE: Disable funding relayers for testing, local devenv, or service shutdown drains. + When false, this skips the initial boot funding here AND disables runtime auto-funding + (the flag is also checked inside EVMRelayerManager.fundRelayers, which is the chokepoint + for postTransactionMined low-balance top-ups, on-demand scaling, and the FUND_BUNDLER + retry path from BundlerConsumer). */ if (nodeconfig.get("boot.fundRelayers")) { await relayerMangerInstance.fundRelayers(addressList); diff --git a/src/relayer/relayer-manager/EVMRelayerManager.ts b/src/relayer/relayer-manager/EVMRelayerManager.ts index f8f6ece1..f7b023bb 100644 --- a/src/relayer/relayer-manager/EVMRelayerManager.ts +++ b/src/relayer/relayer-manager/EVMRelayerManager.ts @@ -1,5 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Mutex } from "async-mutex"; +import nodeconfig from "config"; import { privateToPublic, publicToAddress, @@ -449,6 +450,12 @@ export class EVMRelayerManager * @param addressList List of relayers to fund */ async fundRelayers(addressList: `0x${string}`[]): Promise { + if (!nodeconfig.get("boot.fundRelayers")) { + log.warn( + `Skipping fundRelayers on chainId: ${this.chainId} for addresses ${addressList}: boot.fundRelayers is disabled`, + ); + return; + } log.info( `Starting to fund relayers on chainId: ${this.chainId} with addresses: ${addressList}`, );