Skip to content

Commit

Permalink
feat: update node config for nitro v2.3.0 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc authored Feb 29, 2024
1 parent 3f7b15a commit 2f5a7cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/scripts/generateNodeConfigType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Project, WriterFunction, Writers } from 'ts-morph';
const { objectType } = Writers;

function getNitroNodeImageTag(): string {
const defaultNitroNodeTag = 'v2.2.5-a20a1c7';
const defaultNitroNodeTag = 'v2.3.0-3e14543';
const argv = process.argv.slice(2);

if (argv.length < 2 || argv[0] !== '--nitro-node-tag') {
Expand Down
28 changes: 15 additions & 13 deletions src/types/NodeConfig.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// THIS FILE IS AUTOMATICALLY GENERATED AND SHOULD NOT BE EDITED MANUALLY
//
// IMAGE: offchainlabs/nitro-node:v2.2.5-a20a1c7
// TIMESTAMP: 2024-02-22T17:33:00.049Z
// IMAGE: offchainlabs/nitro-node:v2.3.0-3e14543
// TIMESTAMP: 2024-02-29T09:03:31.210Z
//
// ---
/** Nitro node configuration options */
Expand All @@ -29,7 +29,7 @@ export type NodeConfig = {
'end-block'?: number;
/** mode to run the blocks-reexecutor on. Valid modes full and random. full - execute all the blocks in the given range. random - execute a random sample range of blocks with in a given range (default "random") */
'mode'?: string;
/** number of threads to parallelize blocks re-execution (default 12) */
/** number of threads to parallelize blocks re-execution (default 10) */
'room'?: number;
/** first block number of the block range for re-execution */
'start-block'?: number;
Expand Down Expand Up @@ -471,12 +471,6 @@ export type NodeConfig = {
/** wait for the max batch delay, even if the batch is full */
'wait-for-max-delay'?: boolean;
};
'blob-client'?: {
/** Beacon Chain url to use for fetching blobs */
'beacon-chain-url'?: string;
/** Full path of the directory to save fetched blobs */
'blob-directory'?: string;
};
'block-validator'?: {
/** current wasm module root ('current' read from chain, 'latest' from machines/latest dir, or provide hash) (default "current") */
'current-module-root'?: string;
Expand All @@ -494,7 +488,7 @@ export type NodeConfig = {
'memory-free-limit'?: string;
/** pending upgrade wasm module root to additionally validate (hash, 'latest' or empty) (default "latest") */
'pending-upgrade-module-root'?: string;
/** record that many blocks ahead of validation (larger footprint) (default 24) */
/** record that many blocks ahead of validation (larger footprint) (default 20) */
'prerecorded-blocks'?: number;
/** poll time to check validations (default 1s) */
'validation-poll'?: string;
Expand All @@ -520,6 +514,8 @@ export type NodeConfig = {
};
};
'dangerous'?: {
/** DANGEROUS! disables the EIP-4844 blob reader, which is necessary to read batches */
'disable-blob-reader'?: boolean;
/** DANGEROUS! disables listening to L1. To be used in test nodes only */
'no-l1-listener'?: boolean;
/** DANGEROUS! allows sequencing without sequencer-coordinator */
Expand Down Expand Up @@ -981,7 +977,13 @@ export type NodeConfig = {
'no-discovery'?: boolean;
};
'parent-chain'?: {
connection?: {
'blob-client'?: {
/** Beacon Chain RPC URL to use for fetching blobs (normally on port 3500) */
'beacon-url'?: string;
/** Full path of the directory to save fetched blobs */
'blob-directory'?: string;
};
'connection'?: {
/** limit size of arguments in log entries (default 2048) */
'arg-log-limit'?: number;
/** how long to wait for initial connection (default 1m0s) */
Expand All @@ -1000,8 +1002,8 @@ export type NodeConfig = {
'url'?: string;
};
/** if set other than 0, will be used to validate database and L1 connection */
id?: number;
wallet?: {
'id'?: number;
'wallet'?: {
/** account to use (default is first account in keystore) */
'account'?: string;
/** if true, creates new key then exits */
Expand Down

0 comments on commit 2f5a7cb

Please sign in to comment.