-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
add AuRa's empty step reward type #2596
Conversation
Instead of producing empty blocks nodes in Aura consensus protocol broadcast an EmptyStep(step, parent_hash) message. https://github.com/paritytech/wiki/blob/master/Aura.md#empty-steps
Pull Request Test Coverage Report for Build e2626d9a-28e7-4ba8-84ec-565506f11c4e
💛 - Coveralls |
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.
@ayrat555 could you please test this? IIRC these changes are not enough to avoid errors.
I'll try it today and give feedback If the errors still occur |
Looks good! No error occurs anymore :) Thanks! This also more than halves the CPU/Network usage because the "erroring" Block now must not be retried |
@@ -182,4 +182,5 @@ defmodule EthereumJSONRPC.Parity.FetchedBeneficiaries do | |||
defp get_address_type(reward_type, index) when reward_type == "external" and index == 10, do: :validator | |||
defp get_address_type(reward_type, _index) when reward_type == "block", do: :validator | |||
defp get_address_type(reward_type, _index) when reward_type == "uncle", do: :uncle | |||
defp get_address_type(reward_type, _index) when reward_type == "emptyStep", do: :validator |
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.
@ayrat555 I wonder, why :validator
and not null
?
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.
@vbaranov I think because it's validators who produce empty steps
Instead of producing empty blocks nodes in Aura consensus protocol
broadcast an EmptyStep(step, parent_hash) message.
https://github.com/paritytech/wiki/blob/master/Aura.md#empty-steps
resolves #2347
Changelog