Merge pull request #313 from filecoin-project/fix/genesis-timestamp

Fix timestamp in genesis
This commit is contained in:
Łukasz Magiera 2019-10-10 04:18:58 +02:00 committed by GitHub
commit b32d197bca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import (
"fmt"
"io"
"os"
"time"
"github.com/ipfs/go-blockservice"
"github.com/ipfs/go-car"
@ -79,7 +80,7 @@ func MakeGenesis(outFile string) func(bs dtypes.ChainBlockstore, w *wallet.Walle
minerAddr: types.FromFil(100000),
}
b, err := gen.MakeGenesisBlock(bs, addrs, gmc, 100000)
b, err := gen.MakeGenesisBlock(bs, addrs, gmc, uint64(time.Now().Unix()))
if err != nil {
return nil, err
}