core: update genesis block to store timestamp in ms

This commit is contained in:
Roman Khimov 2020-06-05 13:05:50 +03:00
parent 35b30ccfdf
commit f63b286c35
4 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ func createGenesisBlock(cfg config.ProtocolConfiguration) (*block.Block, error)
base := block.Base{
Version: 0,
PrevHash: util.Uint256{},
Timestamp: uint64(time.Date(2016, 7, 15, 15, 8, 21, 0, time.UTC).Unix()),
Timestamp: uint64(time.Date(2016, 7, 15, 15, 8, 21, 0, time.UTC).Unix()) * 1000, // Milliseconds.
Index: 0,
NextConsensus: nextConsensus,
Script: transaction.Witness{