1 Star 0 Fork 0

peter / fabric

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
reset.go 706 Bytes
Copy Edit Raw Blame History
senthil authored 2019-07-15 23:28 . rm wait for usr input on reset/rollback
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package node
import (
"github.com/hyperledger/fabric/core/ledger/kvledger"
"github.com/spf13/cobra"
)
func resetCmd() *cobra.Command {
return nodeResetCmd
}
var nodeResetCmd = &cobra.Command{
Use: "reset",
Short: "Resets the node.",
Long: `Resets all channels to the genesis block. When the command is executed, the peer must be offline. When the peer starts after the reset, it will receive blocks starting with block number one from an orderer or another peer to rebuild the block store and state database.`,
RunE: func(cmd *cobra.Command, args []string) error {
return kvledger.ResetAllKVLedgers()
},
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/peter_code_git/fabric.git
git@gitee.com:peter_code_git/fabric.git
peter_code_git
fabric
fabric
v1.4.7

Search