fix time skew message formatting

This commit is contained in:
Kevin Froman 2019-11-30 01:11:46 -06:00
parent 158510e9fb
commit fb975dc52c

View File

@ -60,7 +60,7 @@ def validate_metadata(metadata, block_data) -> bool:
break break
isFuture = (metadata[i] - epoch.get_epoch()) isFuture = (metadata[i] - epoch.get_epoch())
if isFuture > max_clock_difference: if isFuture > max_clock_difference:
logger.warn('Block timestamp is skewed to the future over the max %s: %s' (max_clock_difference, isFuture)) logger.warn('Block timestamp is skewed to the future over the max %s: %s', (max_clock_difference, isFuture))
break break
if (epoch.get_epoch() - metadata[i]) > maxAge: if (epoch.get_epoch() - metadata[i]) > maxAge:
logger.warn('Block is outdated: %s' % (metadata[i],)) logger.warn('Block is outdated: %s' % (metadata[i],))