Skip to content

Commit

Permalink
fix: removing chainid from default store name for mainnet (#2841)
Browse files Browse the repository at this point in the history
Also part of #2823 

Stacked on #2840
  • Loading branch information
distractedm1nd committed Oct 13, 2023
1 parent 4f2a44b commit dbf7dbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/flags_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ func DefaultNodeStorePath(tp string, network string) (string, error) {
return "", err
}
}
if network == p2p.Mainnet.String() {
return fmt.Sprintf("%s/.celestia-%s", home, strings.ToLower(tp)), nil
}
// only include network name in path for testnets and custom networks
return fmt.Sprintf(
"%s/.celestia-%s-%s",
home,
Expand Down

0 comments on commit dbf7dbf

Please sign in to comment.