Skip to content

Commit a4a4660

Browse files
committed
impv: initia init flow
1 parent d6fb769 commit a4a4660

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

models/weaveinit/run_l1_node.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,7 @@ func initializeApp(state *RunL1NodeState) tea.Cmd {
755755
}
756756

757757
initiaHome := filepath.Join(userHome, utils.InitiaDirectory)
758-
if state.existingGenesis {
759-
// TODO: Continue
760-
return utils.EndLoading{}
761-
} else {
762-
// TODO: Continue
758+
if _, err := os.Stat(initiaHome); os.IsNotExist(err) {
763759
runCmd := exec.Command(binaryPath, "init", state.moniker, "--chain-id", state.chainId, "--home", initiaHome)
764760
if err := runCmd.Run(); err != nil {
765761
panic(fmt.Sprintf("failed to run initiad init: %v", err))

0 commit comments

Comments
 (0)