Skip to content
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

Changed rewarding behaviour on not found bonds #627

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

jstuczyn
Copy link
Contributor

@jstuczyn jstuczyn commented Jun 1, 2021

This pull request changes behaviour on mixnode/gateway rewarding if the target bond does not exist. Prior to this change it would simply return an error. It is now changed to an early terminate with an "Ok" result as well as an attribute indicating that the bond was not found.

The reason for the change is to help with automated rewarding. Right now if we decide to send 100 rewards in a single block, if one of them fails due to bond not being found (which happens relatively frequently - somebody just unbonded their node after the rewarding script started executing), the entire block fails and it's a hassle to recover from it. Now instead, in theory, it should all continue without an issue.

@jstuczyn jstuczyn added this to the 0.10.2 milestone Jun 1, 2021
@jstuczyn jstuczyn requested a review from futurechimp June 1, 2021 09:06
@jstuczyn jstuczyn added this to In progress in Core systems via automation Jun 1, 2021
@futurechimp futurechimp merged commit 15e377e into develop Jun 7, 2021
@futurechimp futurechimp deleted the feature/no-error-on-nonexistent-bond branch June 7, 2021 10:00
Core systems automation moved this from In progress to Done Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Core systems
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants