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:
parent
42f9d7c193
commit
99de477c0d
@ -669,7 +669,7 @@ public class Block extends Message {
|
||||
// Allow injection of a fake clock to allow unit testing.
|
||||
long currentTime = Utils.currentTimeSeconds();
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user