erigon-pulse/cmd/state/commands/snapshot_metainfo.go
Artem Vorotnikov a6742a4cf8
Kill cmd/state/stateless (#1592)
* Move stuff around

* Remove

* tidy

* Fix for writeReceipt printing

* fix lint typo

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2021-03-23 16:33:58 +00:00

24 lines
452 B
Go

package commands
import (
"errors"
"github.com/ledgerwatch/turbo-geth/cmd/state/generate"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(snapshotMetainfoCmd)
}
var snapshotMetainfoCmd = &cobra.Command{
Use: "snapshotMetainfo",
Short: "Calculate snapshot metainfo",
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
return errors.New("empty path")
}
return generate.MetaInfoHash(args[0])
},
}