Skip to content

Commit 6843671

Browse files
committed
Update genesis, docker setup, and disable contract size limit
1 parent cd96e6d commit 6843671

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
build/_workspace
44
build/_bin
55
tests/testdata
6+
datadir/

eth/backend.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
192192
vmConfig = vm.Config{
193193
EnablePreimageRecording: config.EnablePreimageRecording,
194194
EnableWitnessCollection: config.EnableWitnessCollection,
195+
NoMaxCodeSize: true, // Disable contract size limits
195196
}
196197
cacheConfig = &core.CacheConfig{
197198
TrieCleanLimit: config.TrieCleanCache,
62.6 KB
Binary file not shown.

init-geth.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ echo " Transaction History: $TX_HISTORY blocks"
105105
echo " Cache Size: $CACHE_SIZE MB"
106106
echo " Preimages: $ENABLE_PREIMAGES"
107107

108-
# Start geth in server mode without interactive console
109-
exec geth \
108+
# Start geth in background to fix IPC permissions
109+
geth \
110110
--datadir /root/ethereum \
111111
--http \
112112
--http.addr "0.0.0.0" \
@@ -129,4 +129,21 @@ exec geth \
129129
--rollup.disabletxpoolgossip \
130130
--rollup.enabletxpooladmission=false \
131131
--history.state $STATE_HISTORY \
132-
--history.transactions $TX_HISTORY $OVERRIDE_FLAGS
132+
--history.transactions $TX_HISTORY $OVERRIDE_FLAGS &
133+
134+
# Capture the PID
135+
GETH_PID=$!
136+
137+
# Wait for IPC socket to be created
138+
echo "Waiting for IPC socket to be created..."
139+
while [ ! -S /root/ethereum/geth.ipc ]; do
140+
sleep 0.5
141+
done
142+
143+
# Make it world readable/writable
144+
chmod 666 /root/ethereum/geth.ipc
145+
echo "IPC socket permissions fixed to 666"
146+
ls -la /root/ethereum/geth.ipc
147+
148+
# Bring geth back to foreground so Docker can track it properly
149+
wait $GETH_PID

0 commit comments

Comments
 (0)