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

AuRa specific changes for themerge #4124

Merged
merged 964 commits into from
Jun 14, 2022
Merged

AuRa specific changes for themerge #4124

merged 964 commits into from
Jun 14, 2022

Conversation

jmederosalvarado
Copy link
Member

@jmederosalvarado jmederosalvarado commented Jun 8, 2022

Changes:

  • Introduces AuRa specific MergePlugin

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests??

  • Yes
  • No


namespace Nethermind.Api.Extensions;

// Assemblies containing instances of this interface will be the ones
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 80 to 86

if (TrySetState(parent.StateRoot))
{
Block? processed = ProcessPreparedBlock(block, null);
if (processed != null)
block = processed;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we processing block here?
That looks weird to me, this is not the place for that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to process here to apply rewards even on empty blocks

@@ -21,6 +21,6 @@ namespace Nethermind.Api.Extensions;

public interface IPluginConfig : IConfig
{
[ConfigItem(Description = "Order of plugin initialization", DefaultValue = "[Clique, Aura, Ethash, Merge, MEV, HealthChecks, Hive]")]
[ConfigItem(Description = "Order of plugin initialization", DefaultValue = "[Clique, Aura, Ethash, AuRaMerge, Merge, MEV, HealthChecks, Hive]")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please document in AuraMergePlugin that it has to go before the Merge plugin

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a note in AuRaMergePlugin

@LukaszRozmej LukaszRozmej merged commit 0c791e0 into master Jun 14, 2022
@LukaszRozmej LukaszRozmej deleted the merge_aura-merged branch June 14, 2022 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants