OSDN Git Service

add mac function, modify nextBlockTime (#122)
[bytom/vapor.git] / consensus / general.go
index 47650f6..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(60 * 60 * 1000)
+       MaxTimeOffsetMs  = uint64(BlockTimeInterval * BlockNumEachNode / 3)
        MedianTimeBlocks = 11
 
        PayToWitnessPubKeyHashDataSize = 20