Skip to content
Merged
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
4 changes: 3 additions & 1 deletion yarn-project/end-to-end/src/fixtures/snapshot_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ async function setupFromFresh(
aztecNodeConfig.peerCheckIntervalMS = TEST_PEER_CHECK_INTERVAL_MS;
// Only enable proving if specifically requested.
aztecNodeConfig.realProofs = !!opts.realProofs;
aztecNodeConfig.listenAddress = '127.0.0.1';

// Create a temp directory for all ephemeral state and cleanup afterwards
const directoryToCleanup = path.join(tmpdir(), randomBytes(8).toString('hex'));
Expand All @@ -317,7 +318,7 @@ async function setupFromFresh(
} else {
aztecNodeConfig.dataDirectory = statePath;
}
aztecNodeConfig.blobSinkUrl = `http://localhost:${blobSinkPort}`;
aztecNodeConfig.blobSinkUrl = `http://127.0.0.1:${blobSinkPort}`;

// Start anvil. We go via a wrapper script to ensure if the parent dies, anvil dies.
logger.verbose('Starting anvil...');
Expand Down Expand Up @@ -490,6 +491,7 @@ async function setupFromState(statePath: string, logger: Logger): Promise<Subsys
);
aztecNodeConfig.dataDirectory = statePath;
aztecNodeConfig.blobSinkUrl = `http://127.0.0.1:${blobSinkPort}`;
aztecNodeConfig.listenAddress = '127.0.0.1';

const initialFundedAccounts: InitialAccountData[] =
JSON.parse(readFileSync(`${statePath}/accounts.json`, 'utf-8'), reviver) || [];
Expand Down
1 change: 1 addition & 0 deletions yarn-project/ethereum/src/test/start_anvil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function startAnvil(
async () => {
const anvil = createAnvil({
anvilBinary,
host: '127.0.0.1',
port: 0,
blockTime: opts.l1BlockTime,
stopTimeout: 1000,
Expand Down