-
Notifications
You must be signed in to change notification settings - Fork 441
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
Implement engine_exchangeCapabilities
method
#5212
Conversation
aec4e8b
to
c20eaa7
Compare
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.
no caching
Take a closer look. |
engine_getCapabilities
methodengine_exchangeCapabilities
method
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.
We can also print warnings when our exchange capabilities are not the same.
b459446
to
d0e0f01
Compare
src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V1.cs
Outdated
Show resolved
Hide resolved
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.
still a few things to address
|
||
public IBlockProcessingQueue BlockProcessingQueue { get; set; } = null!; | ||
public IBlockTree BlockTree { get; set; } = 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.
What was changed in TestBlockchain?
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 mutator for LogManager
, line 260.
{ | ||
watch.Stop(); | ||
|
||
Metrics.ForkchoiceUpdedExecutionTime = watch.ElapsedMilliseconds; |
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.
You are changing the metrics, please remove
_capabilities[nameof(IEngineRpcModule.engine_exchangeTransitionConfigurationV1)] = true; | ||
_capabilities[nameof(IEngineRpcModule.engine_executionStatus)] = true; | ||
_capabilities[nameof(IEngineRpcModule.engine_forkchoiceUpdatedV1)] = true; | ||
_capabilities[nameof(IEngineRpcModule.engine_forkchoiceUpdatedV2)] = spec.WithdrawalsEnabled; |
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.
don't you think that some list of the methods will be better?
c3353a5
to
dcc4d73
Compare
Changes
engine_exchangeCapabilities
method as specified in the specTypes of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?