-
Notifications
You must be signed in to change notification settings - Fork 839
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
Mining Parameters Metrics #6587
Mining Parameters Metrics #6587
Conversation
|
f246e5a
to
e28757e
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.
Hi @Brindrajsinh-Chauhan thanks for working on this.
Your solution works, but there should be a simpler way to achieve the same, touching very few files and avoiding keeping 2 copies of the values.
See my suggestion for a simple snippet of code as example of how to implement the simpler solution, and let me know if it is not clear
e28757e
to
3ac331d
Compare
Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com>
3ac331d
to
6391272
Compare
Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com>
6391272
to
a43c0f9
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.
LGTM, just some code that I think could be removed
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/MiningParametersMetrics.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/MiningParametersMetrics.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com>
d46c571
to
b493dca
Compare
* mining parameter metrics Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * update changelog Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * remove unwanted code Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> --------- Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com>
* mining parameter metrics Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * update changelog Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * remove unwanted code Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> --------- Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> Signed-off-by: amsmota <antonio.mota@citi.com>
* mining parameter metrics Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * update changelog Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> * remove unwanted code Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> --------- Signed-off-by: Brindrajsinh-Chauhan <brindrajsinh@gmail.com> Signed-off-by: amsmota <antonio.mota@citi.com>
PR description
This PR adds metrics to the Mining Parameters
minGasPrice
andminPriorityFee
asethereum_min_gas_price
andethereum_min_priority_fee
respectively to expose runtime Values of those properties set via cli arguments or RPC methods as a gauge.Fixed Issue(s)
#6291