Skip to content

Commit 871d98e

Browse files
committed
add recover flag
1 parent e451fac commit 871d98e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

code/go/0chain.net/blobber/flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var (
2323
httpsKeyFile string
2424
httpsCertFile string
2525
hostUrl string
26+
recoverTrie bool
2627
)
2728

2829
func init() {
@@ -45,6 +46,7 @@ func init() {
4546
flag.StringVar(&hostUrl, "hosturl", "", "register url on blockchain instead of [schema://hostname+port] if it has value")
4647

4748
flag.IntVar(&grpcPort, "grpc_port", 0, "grpc_port")
49+
flag.BoolVar(&recoverTrie, "recover_trie", false, "recover_trie")
4850
}
4951

5052
func parseFlags() {

code/go/0chain.net/blobbercore/datastore/store.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ func OpenBlockStore() error {
106106
return nil
107107
}
108108

109+
func RecoverTrie() {
110+
111+
}
112+
109113
func FromContext(ctx context.Context) Store {
110114
store := ctx.Value(ContextKeyStore)
111115
if store != nil {

0 commit comments

Comments
 (0)