INNER CODE UNIT · Go
run
wavesplatform/gowaves · cmd/rollback/main.go:29
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")
buildStateHashes = flag.Bool("build-state-hashes", false,
"Calculate and store state hashes for each block height.")
cfgPath = flag.String("cfg-path", "", "Path to configuration JSON file, only for custom blockchain.")
disableBloomFilter = flag.Bool("disable-bloom", false, "Disable bloom filter for state.")
)
flag.TextVar(&compressionAlgo, "db-compression-algo", keyvalue.CompressionDefault,
fmt.Sprintf("Set the compression algorithm for the state database. Supported: %v",
keyvalue.CompressionAlgoStrings(),