OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Wed, 5 Jun 2019 13:16:49 +0000 (21:16 +0800)
committerChengcheng Zhang <943420582@qq.com>
Wed, 5 Jun 2019 13:16:49 +0000 (21:16 +0800)
consensus/general.go

index c8bf412..e048217 100644 (file)
@@ -32,7 +32,7 @@ const (
        BlockTimeInterval = 500
 
        // MaxTimeOffsetMs is the maximum number of seconds a block time is allowed to be ahead of the current time
-       MaxTimeOffsetMs  = uint64(BlockTimeInterval * (BlockNumEachNode + 2))
+       MaxTimeOffsetMs  = uint64(BlockTimeInterval * BlockNumEachNode / 3)
        MedianTimeBlocks = 11
 
        PayToWitnessPubKeyHashDataSize = 20