Skip to content

Commit

Permalink
Merge pull request #4851 from filecoin-project/fix/daemon-test-mode-r…
Browse files Browse the repository at this point in the history
…estart

Truncate genesis file before generating
  • Loading branch information
magik6k authored Nov 16, 2020
2 parents d4f6e1d + f9fc601 commit 49d3bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/modules/testing/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func MakeGenesis(outFile, genesisTemplate string) func(bs dtypes.ChainBlockstore

fmt.Printf("GENESIS MINER ADDRESS: t0%d\n", genesis2.MinerStart)

f, err := os.OpenFile(outFile, os.O_CREATE|os.O_WRONLY, 0644)
f, err := os.OpenFile(outFile, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 49d3bb9

Please sign in to comment.