Skip to content

Commit 2e0b433

Browse files
authored
Set producer planned downtime (#472)
* Set producer planned downtime * Added unit tests for set producer downtime tx * Fix lint * Added offset infront of start timestamp for planned downtime * Set producer downtime with short notice * Reworked producer downtime tx * Fix Veblop tests * Remove tests for old implementation of SetProducerDowntime * Remove redundant check for SetProducerDowntime HF * Added unit tests * Fix lint * Fix SetProducerDowntime tx cli * Fix SetProducerDowntime tx cli * Fix SetProducerDowntime HF check * Added logging of RawLog when tx fails * Allow overriding existing planned downtime * Change min downtime range * Added metrics for SetProducerDowntime * Added autocli for GetProducerPlannedDowntime * Finalize SetProducerDowntime * SetProducerDowntime - fix producer address comparison * SetProducerDowntime - fix producer address comparison * Rework PostHandler for SetProducerDowntime * Fix lint * Add calcOnly flag for SetProducerDowntime tx * SetProducerDowntime - check early if producer * Fix lint * Added HF checks for introducing 4th producer * Fix lint * Move GetProducerSetLimit to helper config * Added new producers IDs * Limit fallback producers based on producerSetLimit * Increase span rotation thresholds * Added HF check for SetProducerDowntime * Fix build * Fix lint * Fix context * Fix HF check for SetProducerDowntime * Fix duplicated sdk.Context usage * Fix minimum time in future check for SideHandleSetProducerDowntime * Fix error message * Fix HF check in CheckTx * Add HF check for ChangeProducerThreshold and SpanRotationBuffer * Fix cli flags type * Removed FlagChainID from cli * Added check for zero average block time * Added checks for timestamp in past * Refactor based on comments * Fix tests * Filter MsgSetProducerDowntime before HF * Set Amoy HF height * Set Amoy HF height * Update Amoy default producers
1 parent 05b65d0 commit 2e0b433

36 files changed

+5462
-492
lines changed

api/heimdallv2/bor/bor.pulsar.go

Lines changed: 537 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/heimdallv2/bor/query.pulsar.go

Lines changed: 1123 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/heimdallv2/bor/query_grpc.pb.go

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)