-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: bls improvements and other fixes #251
Conversation
Signed-off-by: HashEngineering <[email protected]>
…ation Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
40606a7
to
03407a7
Compare
if (version != MIN_STANDARD_VERSION) { | ||
if (getVersionShort() == SPECIAL_VERSION) { | ||
s.append(indent).append("version: ").append(getVersionShort()).append('\n'); | ||
Type type = (getVersionShort() == SPECIAL_VERSION) ? getType() : Type.TRANSACTION_NORMAL; | ||
s.append(" type: ").append(type.toString()).append('(').append(type.getValue()).append(")\n"); | ||
} else { | ||
s.append(indent).append("version: ").append(version).append('\n'); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a cleaner way to print the version for a transaction
peer.sendMessage(lastRequest.getRequestMessage()); | ||
|
||
if (retryFuture != null) { | ||
log.info("sendMessageFuture cancel: {}", lastRequest.request.getClass().getSimpleName()); | ||
retryFuture.cancel(true); | ||
retryFuture = null; | ||
} | ||
retryFuture = scheduledExecutorService.schedule(() -> { | ||
if (!lastRequest.getReceived()) { | ||
log.info("sendMessageFuture check: last request not received {}", lastRequest.request.getClass().getSimpleName()); | ||
retryLastRequest(peer, new TimeoutException("last request not received")); | ||
} else { | ||
log.info("sendMessageFuture check: last request received {}", lastRequest.request.getClass().getSimpleName()); | ||
} | ||
}, 10, TimeUnit.SECONDS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new means of retry instead of using a ListenableFuture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only