forked from Qortal/qortal
Add debug logging when invalid timestamp is encountered
This commit is contained in:
parent
9e001dfc16
commit
d05359dfa9
@ -1061,8 +1061,10 @@ public class Block {
|
|||||||
return ValidationResult.MINTER_NOT_ACCEPTED;
|
return ValidationResult.MINTER_NOT_ACCEPTED;
|
||||||
|
|
||||||
long expectedTimestamp = calcTimestamp(parentBlockData, this.blockData.getMinterPublicKey(), minterLevel);
|
long expectedTimestamp = calcTimestamp(parentBlockData, this.blockData.getMinterPublicKey(), minterLevel);
|
||||||
if (this.blockData.getTimestamp() != expectedTimestamp)
|
if (this.blockData.getTimestamp() != expectedTimestamp) {
|
||||||
return ValidationResult.TIMESTAMP_INCORRECT;
|
LOGGER.debug(String.format("timestamp mismatch! block had %s but we expected %s", this.blockData.getTimestamp(), expectedTimestamp));
|
||||||
|
return ValidationResult.TIMESTAMP_INCORRECT;
|
||||||
|
}
|
||||||
|
|
||||||
return ValidationResult.OK;
|
return ValidationResult.OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user