Skip to content

use genesis.json for ArbOSInit feature flags#176

Open
Tristan-Wilson wants to merge 1 commit intomasterfrom
fix-genesis-init
Open

use genesis.json for ArbOSInit feature flags#176
Tristan-Wilson wants to merge 1 commit intomasterfrom
fix-genesis-init

Conversation

@Tristan-Wilson
Copy link
Member

@Tristan-Wilson Tristan-Wilson commented Feb 13, 2026

The init.transaction-filtering-enabled config key was added as a temporary integration shim but never merged to nitro master in favor of passing ArbOSInit flags through genesis.json. Switch the testnode to generate an l2_genesis.json containing the chain config as serializedChainConfig plus the arbOSInit flags, and pass it to all L2 nodes via --init.genesis-json-file.

Testing done

For testing, I ran the same smoke test as in #175

The --dev build is no longer needed, you can just specify the latest nitro rc eg

NITRO_NODE_VERSION=offchainlabs/nitro-node:v3.10.0-rc.2-746bda2 ./test-node.bash --init --l2-tx-filtering

Fixes NIT-4507

The init.transaction-filtering-enabled config key was added as a
temporary integration shim but never merged to nitro master in favor of
passing ArbOSInit flags through genesis.json. Switch the testnode to
generate an l2_genesis.json containing the chain config as
serializedChainConfig plus the arbOSInit flags, and pass it to all
L2 nodes via --init.genesis-json-file.
}
}

if (argv.txfiltering) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any issue with generating genesis.json for all cases?

}

let l3Config = JSON.parse(baseConfJSON)
delete l3Config["init"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants