core: update block timestamp format

Changed block.Timestamp from uint32 to uint64
This commit is contained in:
Anna Shaleva 2020-04-21 14:26:57 +03:00
parent de91418d45
commit aa554f0a9a
20 changed files with 52 additions and 48 deletions

View file

@ -1049,7 +1049,7 @@ func newBlock(t *testing.T, bc blockchainer.Blockchainer, index uint32, txs ...*
b := &block.Block{
Base: block.Base{
PrevHash: hdr.Hash(),
Timestamp: uint32(time.Now().UTC().Unix()) + hdr.Index,
Timestamp: uint64(time.Now().UTC().Unix()) + uint64(hdr.Index),
Index: hdr.Index + index,
ConsensusData: 1111,
NextConsensus: witness.ScriptHash(),