-
Notifications
You must be signed in to change notification settings - Fork 535
[Feature] Adding new flag which enables custom block time value #384
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
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.
Looks good, left a few minor comments 💯
We should discuss if we want this |
I don't want to constrain people not to set it to 0 if they want to, let's keep it completely unbounded right now so that we may test however we wish, and later we can add sane limitations |
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 add small comments, and that's it :)
Thank you for fixing the metrics 🙏
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.
Looks good to me. I've left nitpick comment. Please check it. Thank you
* Changed desctiption default value * Changed time.UnixMili to time.Unix for go backward compatibility
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
Description
This PR introduces new flag
--block-time
which enables the operator to define a custom block time value during server configuration and startup.This flag accepts values expressed in milliseconds and by default it is set to 2000 (2s).
Changed log output regarding block generation time to
generation_time_in_miliseconds
which now shows the value in millisecondsgeneration_time_in_miliseconds=2000
Fixed
polygon_consensus_block_interval
Prometheus metric to correctly show block generation time.IMPORTANT: This metric is changed to Gauge, as Histogram did not present this metric properly.
Fixed
polygon_consensus_rounds
Prometheus metric to correctly show round number to correspond to the log outputs.Changes include
Checklist