mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
a6742a4cf8
* Move stuff around * Remove * tidy * Fix for writeReceipt printing * fix lint typo Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
24 lines
452 B
Go
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])
|
|
},
|
|
}
|