3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 15:22:16 +00:00

Extend exception message to help track down flaky test.

This commit is contained in:
Mike Hearn 2014-10-07 13:47:02 +02:00
parent 42f9d7c193
commit 99de477c0d

View File

@ -669,7 +669,7 @@ public class Block extends Message {
// Allow injection of a fake clock to allow unit testing. // Allow injection of a fake clock to allow unit testing.
long currentTime = Utils.currentTimeSeconds(); long currentTime = Utils.currentTimeSeconds();
if (time > currentTime + ALLOWED_TIME_DRIFT) if (time > currentTime + ALLOWED_TIME_DRIFT)
throw new VerificationException("Block too far in future"); throw new VerificationException(String.format("Block too far in future: %d vs %d", time, currentTime + ALLOWED_TIME_DRIFT));
} }
private void checkSigOps() throws VerificationException { private void checkSigOps() throws VerificationException {