mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
21 lines
543 B
Go
21 lines
543 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"github.com/ledgerwatch/turbo-geth/cmd/state/stateless"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
withBlock(checkChangeSetsCmd)
|
||
|
withChaindata(checkChangeSetsCmd)
|
||
|
rootCmd.AddCommand(checkChangeSetsCmd)
|
||
|
}
|
||
|
|
||
|
var checkChangeSetsCmd = &cobra.Command{
|
||
|
Use: "checkChangeSets",
|
||
|
Short: "Re-executes historical transactions in read-only mode and checks that their outputs match the database ChangeSets",
|
||
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||
|
return stateless.CheckChangeSets(block, chaindata)
|
||
|
},
|
||
|
}
|