git clone https://github.com/ZKFair/zkfair-cdk-validium-node.git
cd zkfair-cdk-validium-node
// go version 1.21 is recommended
go build -o ./build/cmd ./cmd
Modify restore configuration, change the highlighted part to your own database connection configuration
vi snapshot_restore.toml
snapshot_restore.toml:
You must fill in the following part with your own information.
- [StateDB] # Your own StateDB connection
- [HashDB] # Your own HashDB(ProverDB) connection
[Log]
Environment = "development" # "production" or "development"
Level = "debug" # "info"
Outputs = ["stderr"]
[StateDB] # Your own StateDB connection
User = "state_user"
Password = "state_password"
Name = "state_db"
Host = "127.0.0.1"
Port = "5432"
EnableLog = false
MaxConns = 200
[HashDB] # Your own HashDB(ProverDB) connection
User = "prover_user"
Password = "prover_password"
Name = "prover_db"
Host = "127.0.0.1"
Port = "5433"
EnableLog = false
MaxConns = 200