core: update block timestamp format
Changed block.Timestamp from uint32 to uint64
This commit is contained in:
parent
de91418d45
commit
aa554f0a9a
20 changed files with 52 additions and 48 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue