File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
"github.com/tendermint/tendermint/internal/state/indexer/sink/kv"
18
18
"github.com/tendermint/tendermint/internal/state/indexer/sink/psql"
19
19
"github.com/tendermint/tendermint/internal/store"
20
+ "github.com/tendermint/tendermint/libs/cli"
20
21
"github.com/tendermint/tendermint/libs/log"
21
22
"github.com/tendermint/tendermint/libs/os"
22
23
"github.com/tendermint/tendermint/rpc/coretypes"
@@ -52,6 +53,8 @@ either or both arguments.
52
53
tendermint reindex-event --start-height 2 --end-height 10
53
54
` ,
54
55
RunE : func (cmd * cobra.Command , args []string ) error {
56
+ home , err := cmd .Flags ().GetString (cli .HomeFlag )
57
+ conf .RootDir = home
55
58
bs , ss , err := loadStateAndBlockStore (conf )
56
59
if err != nil {
57
60
return fmt .Errorf ("%s: %w" , reindexFailed , err )
Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ func DefaultBaseConfig() BaseConfig {
250
250
FilterPeers : false ,
251
251
DBBackend : "goleveldb" ,
252
252
DBPath : "data" ,
253
+ RootDir : "/root/.sei" ,
253
254
}
254
255
}
255
256
You can’t perform that action at this time.
0 commit comments