INNER CODE UNIT · Go
main
wavesplatform/gowaves · cmd/rollback/main.go:21
func main() {
if err := run(); err != nil {
slog.Error("Failed to rollback", logging.Error(err))
os.Exit(1)
}
slog.Info("Rollback completed successfully")
}
func run() error {
var (
lp = logging.Parameters{}
compressionAlgo keyvalue.CompressionAlgo
statePath = flag.String("state-path", "", "Path to node's state directory")
blockchainType = flag.String("blockchain-type", "mainnet", "Blockchain type: mainnet/testnet/stagenet")
height = flag.Uint64("height", 0, "Height to rollback")
buildExtendedAPI = flag.Bool("build-extended-api", false,
"Builds extended API. "+
"Note that state must be re-imported in case it wasn't imported with similar flag set")