diff --git a/pkg/core/helper_test.go b/pkg/core/helper_test.go index 4fd07a32a..521baf96e 100644 --- a/pkg/core/helper_test.go +++ b/pkg/core/helper_test.go @@ -60,7 +60,7 @@ func newBlock(cfg config.ProtocolConfiguration, index uint32, prev util.Uint256, Base: block.Base{ Version: 0, PrevHash: prev, - Timestamp: uint64(time.Now().UTC().Unix()) + uint64(index), + Timestamp: uint64(time.Now().UTC().Unix())*1000 + uint64(index), Index: index, NextConsensus: witness.ScriptHash(), Script: witness, diff --git a/pkg/core/util.go b/pkg/core/util.go index 8600d4b41..c3bee9ff3 100644 --- a/pkg/core/util.go +++ b/pkg/core/util.go @@ -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{ diff --git a/pkg/core/util_test.go b/pkg/core/util_test.go index 992b70eec..7ddc937b8 100644 --- a/pkg/core/util_test.go +++ b/pkg/core/util_test.go @@ -20,7 +20,7 @@ func TestGenesisBlockMainNet(t *testing.T) { // have been changed. Consequently, hash of the genesis block has been changed. // Update expected genesis block hash for better times. // Old hash is "d42561e3d30e15be6400b6df2f328e02d2bf6354c41dce433bc57687c82144bf" - expect := "d2e6d56c734f24c294a74785023af23f20347d97ef92e7bff1b337e37acbf2dd" + expect := "30b7e37836146ef63ffdc28411c6c22153b69d8fb10b1d5b96ea662cfb19d2e8" assert.Equal(t, expect, block.Hash().StringLE()) } diff --git a/pkg/rpc/server/testdata/testblocks.acc b/pkg/rpc/server/testdata/testblocks.acc index fdea207f7..9b244c9d1 100644 Binary files a/pkg/rpc/server/testdata/testblocks.acc and b/pkg/rpc/server/testdata/testblocks.acc differ