Skip to content

Commit

Permalink
Misc small testnode fixes (#42)
Browse files Browse the repository at this point in the history
- Use `develop` branch of nitro-contracts
- Remove `node.espresso` argument that was removed in nitro
- Remove trailing `-f` argument from docker build command
- Default to `leveldb` db backend to avoid panic from new default
  backend `pebble`.
  • Loading branch information
sveitser authored Aug 9, 2024
1 parent c712daf commit 9ea0c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ function writeConfigs(argv: any) {
"strategy": "MakeNodes",
},
"sequencer": false,
"espresso": false,
"dangerous": {
"no-sequencer-coordinator": false,
"disable-blob-reader": true,
Expand Down Expand Up @@ -247,7 +246,8 @@ function writeConfigs(argv: any) {
"forwarding-target": "null",
},
"persistent": {
"chain": "local"
"chain": "local",
"db-engine": "leveldb"
},
"ws": {
"addr": "0.0.0.0"
Expand Down Expand Up @@ -296,7 +296,6 @@ function writeConfigs(argv: any) {
sequencerConfig.node["delayed-sequencer"].enable = true

if (argv.espresso) {
sequencerConfig.node.espresso = true
sequencerConfig.execution.sequencer.espresso = true
sequencerConfig.execution.sequencer["hotshot-url"] = argv.espressoUrl
sequencerConfig.node.feed.output.enable = true
Expand Down
4 changes: 2 additions & 2 deletions test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NITRO_NODE_VERSION=offchainlabs/nitro-node:v3.0.1-cf4b74e-dev
ESPRESSO_VERSION=ghcr.io/espressosystems/nitro-espresso-integration/nitro-node-dev:integration
BLOCKSCOUT_VERSION=offchainlabs/blockscout:v1.0.0-c8db5b1

DEFAULT_NITRO_CONTRACTS_VERSION="deploy"
DEFAULT_NITRO_CONTRACTS_VERSION="develop"
DEFAULT_TOKEN_BRIDGE_VERSION="v1.2.2"

# Set default versions if not overriden by provided env vars
Expand Down Expand Up @@ -301,7 +301,7 @@ if $force_build; then
echo execute from a sub-directory of nitro or use NITRO_SRC environment variable
exit 1
fi
docker build "$NITRO_SRC" -t nitro-node-dev --target nitro-node-dev -f
docker build "$NITRO_SRC" -t nitro-node-dev --target nitro-node-dev
fi
if $dev_build_blockscout; then
if $blockscout; then
Expand Down

0 comments on commit 9ea0c23

Please sign in to comment.