Skip to content

Commit

Permalink
time of new block should be later than median time of prev block
Browse files Browse the repository at this point in the history
  • Loading branch information
whitefen committed Oct 10, 2018
1 parent 687015f commit a2b83c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/mining/mining.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func getExcessiveBlockSizeSig() []byte {
func UpdateTime(bk *block.Block, indexPrev *blockindex.BlockIndex) int64 {
oldTime := int64(bk.Header.Time)
var newTime int64
mt := int64(0) + 1
mt := indexPrev.GetMedianTimePast() + 1
at := util.GetAdjustedTime()
if mt > at {
newTime = mt
Expand Down

0 comments on commit a2b83c1

Please sign in to comment.