-
Notifications
You must be signed in to change notification settings - Fork 267
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
Adding new rsk_getStorageBytesAt JSON-RPC method #2191
Conversation
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'd probably need to disable this method in here, as it might be resource intensive in some cases
sure, I didn't added as I was testing it locally and then I forgot to do it. Thanks for spotting it! |
@@ -47,4 +50,7 @@ default void rsk_flush() { | |||
} | |||
|
|||
RskModule getRskModule(); | |||
|
|||
String rsk_getStorageBytesAt(HexAddressParam address, HexNumberParam storageIdx, BlockRefParam blockRefParam); |
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.
just to understand, is there a reason why the default keyword isn't declared?
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.
I'm only declaring the method and in this case, it is not needed to add default implementation.
default methods are used when you want to implement a default method behavior within an interface to not break compatibility with older implementations. It is mainly used in high-exposure interfaces but here it is not needed.
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.
great, huge thanks angel.
Kudos, SonarCloud Quality Gate passed! |
c8bd7fb
to
3b88287
Compare
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: