mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
068463dff4
* Store transactions individually * Store transactions individually * save progress * checkIndex * merge
23 lines
533 B
Go
23 lines
533 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/ledgerwatch/turbo-geth/cmd/state/verify"
|
|
"github.com/ledgerwatch/turbo-geth/cmd/utils"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
withChaindata(checkIndexCMD)
|
|
withIndexBucket(checkIndexCMD)
|
|
withCSBucket(checkIndexCMD)
|
|
rootCmd.AddCommand(checkIndexCMD)
|
|
}
|
|
|
|
var checkIndexCMD = &cobra.Command{
|
|
Use: "checkIndex",
|
|
Short: "Index checker",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return verify.CheckIndex(utils.RootContext(), chaindata, changeSetBucket, indexBucket)
|
|
},
|
|
}
|