Fixed consensus proposal time vote filter.

This commit is contained in:
ravinsp
2020-11-14 17:20:09 +05:30
parent 8d5cb670ce
commit 645f0023a0

View File

@@ -524,7 +524,7 @@ namespace consensus
{
// Vote for times.
// Everyone votes on an arbitrary time, as long as it's not in the future and within the round time.
if (ctx.time_now > cp.time && (ctx.time_now - cp.time) < conf::cfg.roundtime)
if (ctx.time_now > cp.time && (ctx.time_now - cp.time) <= conf::cfg.roundtime)
increment(votes.time, cp.time);
// Vote for user pubkeys.