From 3dac3f0e2709d571a2c00fe648fc3c53fbaf479b Mon Sep 17 00:00:00 2001 From: Tuckson <105675159+TucksonDev@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:05:52 +0000 Subject: [PATCH] feat: update node config for nitro v2.2.x (#45) --- src/prepareNodeConfig.ts | 26 +++++++++++++++----------- src/types/NodeConfig.ts | 30 +++++++++++++++++------------- 2 files changed, 32 insertions(+), 24 deletions(-) diff --git a/src/prepareNodeConfig.ts b/src/prepareNodeConfig.ts index bb4aa173..8cd5b3d8 100644 --- a/src/prepareNodeConfig.ts +++ b/src/prepareNodeConfig.ts @@ -102,17 +102,10 @@ export function prepareNodeConfig({ api: ['eth', 'net', 'web3', 'arb', 'debug'], }, 'node': { - 'forwarding-target': '', - 'sequencer': { - 'max-tx-data-size': 85000, - 'enable': true, - 'dangerous': { - 'no-coordinator': true, - }, - 'max-block-speed': '250ms', - }, + 'sequencer': true, 'delayed-sequencer': { - enable: true, + 'enable': true, + 'use-merge-finality': false, }, 'batch-poster': { 'max-size': 90000, @@ -128,6 +121,17 @@ export function prepareNodeConfig({ 'private-key': sanitizePrivateKey(validatorPrivateKey), }, }, + 'dangerous': { + 'no-sequencer-coordinator': true, + }, + }, + 'execution': { + 'forwarding-target': '', + 'sequencer': { + 'enable': true, + 'max-tx-data-size': 85000, + 'max-block-speed': '250ms', + }, 'caching': { archive: true, }, @@ -141,7 +145,7 @@ export function prepareNodeConfig({ 'parent-chain-node-url': parentChainRpcUrl, 'rest-aggregator': { enable: true, - urls: 'http://localhost:9876', + urls: 'http://localhost:9877', }, 'rpc-aggregator': { 'enable': true, diff --git a/src/types/NodeConfig.ts b/src/types/NodeConfig.ts index ab425b0b..86ec6453 100644 --- a/src/types/NodeConfig.ts +++ b/src/types/NodeConfig.ts @@ -48,17 +48,10 @@ export type NodeConfig = { api: string[]; }; 'node': { - 'forwarding-target': string; - 'sequencer': { - 'max-tx-data-size': number; - 'enable': boolean; - 'dangerous': { - 'no-coordinator': boolean; - }; - 'max-block-speed': string; - }; + 'sequencer': boolean; 'delayed-sequencer': { - enable: boolean; + 'enable': boolean; + 'use-merge-finality': boolean; }; 'batch-poster': { 'max-size': number; @@ -74,9 +67,6 @@ export type NodeConfig = { 'private-key': string; }; }; - 'caching': { - archive: boolean; - }; 'data-availability'?: { 'enable': boolean; 'sequencer-inbox-address': string; @@ -94,5 +84,19 @@ export type NodeConfig = { 'backends': string; }; }; + 'dangerous': { + 'no-sequencer-coordinator': boolean; + }; + }; + 'execution': { + 'forwarding-target': string; + 'sequencer': { + 'max-tx-data-size': number; + 'enable': boolean; + 'max-block-speed': string; + }; + 'caching': { + archive: boolean; + }; }; };