Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"boot": {
"fundRelayers": true
"fundRelayers": false
},
"health": {
"checkRelayers": false
Expand All @@ -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,
Expand Down
7 changes: 5 additions & 2 deletions src/common/service-manager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>("boot.fundRelayers")) {
await relayerMangerInstance.fundRelayers(addressList);
Expand Down
7 changes: 7 additions & 0 deletions src/relayer/relayer-manager/EVMRelayerManager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Mutex } from "async-mutex";
import nodeconfig from "config";
import {
privateToPublic,
publicToAddress,
Expand Down Expand Up @@ -449,6 +450,12 @@ export class EVMRelayerManager
* @param addressList List of relayers to fund
*/
async fundRelayers(addressList: `0x${string}`[]): Promise<any> {
if (!nodeconfig.get<boolean>("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}`,
);
Expand Down
Loading