X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=test%2Fblock_test.go;h=eeb6c95ff5fba3cccffccedd2de15d428e2f7f79;hb=a8d5ed0c63deddcfe63984a3441446aa6b20e1cd;hp=1aca2826e2f59ae3c9fed7b50d856dbaaf09a500;hpb=54373c1a3efe0e373ec1605840a4363e4b246c46;p=bytom%2Fvapor.git diff --git a/test/block_test.go b/test/block_test.go index 1aca2826..eeb6c95f 100644 --- a/test/block_test.go +++ b/test/block_test.go @@ -63,7 +63,7 @@ func TestBlockHeader(t *testing.T) { desc: "invalid timestamp, greater than MaxTimeOffsetMs from system time", version: func() uint64 { return chain.BestBlockHeader().Version }, prevHeight: chain.BestBlockHeight, - timestamp: func() uint64 { return uint64(time.Now().Unix()) + consensus.MaxTimeOffsetMs + 60 }, + timestamp: func() uint64 { return uint64(time.Now().Unix()) + consensus.ActiveNetParams.MaxTimeOffsetMs + 60 }, prevHash: chain.BestBlockHash, valid: false, },