Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Feb 2, 2024
1 parent f8e5b36 commit 34c5298
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions integration_test/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export L1_PROVER_PRIVATE_KEY=0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a841
export TREASURY=0x1670010000000000000000000000000000010001

# show the integration test environment variables.
echo
echo "TAIKO_MONO_DIR=$TAIKO_MONO_DIR"
echo "L1_BEACON_HTTP_ENDPOINT: $L1_BEACON_HTTP_ENDPOINT"
echo "L1_NODE_HTTP_ENDPOINT=$L1_NODE_HTTP_ENDPOINT"
echo "L1_NODE_WS_ENDPOINT=$L1_NODE_WS_ENDPOINT"
echo "L2_EXECUTION_ENGINE_HTTP_ENDPOINT=$L2_EXECUTION_ENGINE_HTTP_ENDPOINT"
Expand All @@ -43,3 +45,4 @@ echo "L1_PROPOSER_PRIVATE_KEY=$L1_PROPOSER_PRIVATE_KEY"
echo "L1_PROVER_PRIVATE_KEY=$L1_PROVER_PRIVATE_KEY"
echo "TREASURY=$TREASURY"
echo "JWT_SECRET=$JWT_SECRET"
echo
5 changes: 5 additions & 0 deletions internal/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ services:
- --http.api=eth,net,web3
- --http.addr=0.0.0.0
- --http.corsdomain=*
- --http.api
- admin,debug,eth,net,web3,txpool,miner,evm
- --ws
- --ws.api=eth,net,web3
- --ws.addr=0.0.0.0
- --ws.origins=*
- --ws.api
- admin,debug,eth,net,web3,txpool,miner,evm
- --authrpc.vhosts=*
- --authrpc.addr=0.0.0.0
- --authrpc.jwtsecret=/execution/jwtsecret
Expand All @@ -101,6 +105,7 @@ services:
- --password=/execution/geth_password.txt
- --nodiscover
- --syncmode=full
- --gcmode=archive
ports:
- "8545"
- "8546"
Expand Down
2 changes: 1 addition & 1 deletion internal/docker/docker_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export L1_NODE_WS_ENDPOINT=ws://localhost:$(docker port geth | grep '0.0.0.0' |
export L2_EXECUTION_ENGINE_HTTP_ENDPOINT=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==1 {print $2}')
export L2_EXECUTION_ENGINE_WS_ENDPOINT=ws://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==2 {print $2}')
export L2_EXECUTION_ENGINE_AUTH_ENDPOINT=http://localhost:$(docker port l2_node | grep "0.0.0.0" | awk -F ':' 'NR==3 {print $2}')
export JWT_SECRET=$DIR/nodes/jwt.hex
export JWT_SECRET=$DIR/taikogeth/jwt.hex

echo
echo -e "L1_NODE PORTS: \n$(docker port geth)"
Expand Down
6 changes: 3 additions & 3 deletions internal/docker/execution/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"londonBlock": 0,
"arrowGlacierBlock": 0,
"grayGlacierBlock": 0,
"shanghaiTime": 1706862043,
"cancunTime": 1706862043,
"shanghaiTime": 1706864028,
"cancunTime": 1706864028,
"terminalTotalDifficulty": 0,
"terminalTotalDifficultyPassed": true
},
"nonce": "0x0",
"timestamp": "0x65bca5db",
"timestamp": "0x65bcad9c",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000123463a4b065722e99115d6c222f267d9cabb5240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x1c9c380",
"difficulty": "0x1",
Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (s *ClientTestSuite) SetupTest() {
glogger := log.NewGlogHandler(log.NewTerminalHandlerWithLevel(os.Stdout, log.LevelInfo, true))
log.SetDefault(log.NewLogger(glogger))

testAddrPrivKey, err := crypto.ToECDSA(common.Hex2Bytes(os.Getenv("L1_PROPOSER_PRIVATE_KEY")))
testAddrPrivKey, err := crypto.ToECDSA(common.FromHex(os.Getenv("L1_PROPOSER_PRIVATE_KEY")))
s.Nil(err)

s.TestAddrPrivKey = testAddrPrivKey
Expand Down

0 comments on commit 34c5298

Please sign in to comment.