-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix performatives #106
Fix performatives #106
Conversation
if blacklisted is None: | ||
return None |
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.
instead of bubbling up None
we could consider raising a custom error.
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.
The whole error treatment you have introduced is inconsistent. But I will now merge this as we want to wrap up.
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.
added to issue #98
work_tx = yield from self.build_safe_raw_tx(raw_tx) | ||
if work_tx is None: | ||
yield from self.sleep(self.context.params.sleep_time) | ||
return |
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.
Note, if this returns then we unnecessarily take 517 again. It would be desirable to store locally on behaviour until it either succeeds or gets excited.
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.
added to #108
Tests/performatives
the Behaviours have been revisited as it was pointed out that dealing with message performatives was not sufficiently covered #98. When the response is of an incorrect type (e.g. on error) we cannot return.
build_safe_raw_tx
was not yet in useIn this PR we update behaviours to deal with
Optional
returnshelper functions introduced:
build_keep3r_raw_tx
is_workable_job
build_work_raw_tx
safe transaction building step added for:
BondingBehaviour
ActivationBehaviour
PerformWorkBehaviour