Fix abcore init: add --db.engine=pebble --state.scheme=path to geth init
Matches the run profile flags to prevent 'incompatible state scheme' crash on fresh datadir initialization (stored: hash, provided: path). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -10,7 +10,7 @@ GENESIS_FILE="/config/genesis.json"
|
|||||||
if [ -z "$(ls -A "$GETH_DATA_DIR")" ]; then
|
if [ -z "$(ls -A "$GETH_DATA_DIR")" ]; then
|
||||||
echo "abcore: data directory is empty, initializing from genesis..."
|
echo "abcore: data directory is empty, initializing from genesis..."
|
||||||
if [ -f "$GENESIS_FILE" ]; then
|
if [ -f "$GENESIS_FILE" ]; then
|
||||||
/abcore/bin/geth init --datadir "$GETH_DATA_DIR" "$GENESIS_FILE"
|
/abcore/bin/geth init --datadir "$GETH_DATA_DIR" --db.engine=pebble --state.scheme=path "$GENESIS_FILE"
|
||||||
else
|
else
|
||||||
echo "abcore: genesis file not found at $GENESIS_FILE" >&2
|
echo "abcore: genesis file not found at $GENESIS_FILE" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user