Skip to content

Commit

Permalink
feat: update node config for nitro v2.2.x (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev authored Feb 13, 2024
1 parent 4b0ace6 commit 3dac3f0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
26 changes: 15 additions & 11 deletions src/prepareNodeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand All @@ -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,
Expand Down
30 changes: 17 additions & 13 deletions src/types/NodeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -74,9 +67,6 @@ export type NodeConfig = {
'private-key': string;
};
};
'caching': {
archive: boolean;
};
'data-availability'?: {
'enable': boolean;
'sequencer-inbox-address': string;
Expand All @@ -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;
};
};
};

0 comments on commit 3dac3f0

Please sign in to comment.