Fix timestamp in genesis

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-10-09 19:08:06 +02:00
parent 0c6fcde9c4
commit 22ad0e176d
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

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
}