You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function build in node_config_builder.rs is always generating new validator_config, it's this line:
let validator_config = ValidatorGenesisConfigBuilder::new().build(rng);
Because of this, whenever I run existing node with sui start the new full node with empty database is created and all transactions are being rerun from scratch. It makes it very painful to use sui start with persistent database.
Here's the script I'm using to setup persistent local node, it can reproduce the issue. Whenever you run it it will always create new database in full_node_db because of this issue.
#!/bin/bash# Check if SUI_WORK_DIR is setif [ -z"$SUI_WORK_DIR" ];thenecho"Error: SUI_WORK_DIR environment variable is not set"exit 1
fi# Create directory if it doesn't exist
mkdir -p "$SUI_WORK_DIR"# Generate genesis configuration if directory is emptyif [ -z"$(ls -A $SUI_WORK_DIR)" ];thenecho"Generating genesis configuration..."
sui genesis -f --with-faucet --epoch-duration-ms 60000 --working-dir "$SUI_WORK_DIR"fi# Set max memory limit to 32GBecho"Setting max memory limit to 32GB"ulimit -v 33554432
# if sui.log exist then move it to sui.timestamp.logif [ -f"./sui.log" ];thenecho"Moving sui.log to sui.$(date +%s).log"
mkdir -p logs
mv "./sui.log""./logs/sui.$(date +%s).log"fi
sui start --network.config "$SUI_WORK_DIR" --with-faucet 2>&1| tee "./sui.log"
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!
Function build in
node_config_builder.rs
is always generating new validator_config, it's this line:Because of this, whenever I run existing node with
sui start
the new full node with empty database is created and all transactions are being rerun from scratch. It makes it very painful to usesui start
with persistent database.Here's the script I'm using to setup persistent local node, it can reproduce the issue. Whenever you run it it will always create new database in full_node_db because of this issue.
The text was updated successfully, but these errors were encountered: