Closed freak12techno closed 4 months ago
The recent changes introduce a new generator, NewConsumerNeedsToSignGenerator
, to the app's initialization process. This generator leverages the application’s chain configurations and logging framework to provide metrics on validators' block-signing requirements. This addition enhances the metrics tracking by integrating the consumer's signing needs data into the overall application’s suite of generators.
File | Change Summary |
---|---|
pkg/app.go |
Added NewConsumerNeedsToSignGenerator to the list of generators within the NewApp function. |
pkg/generators/consumer_needs_to_sign.go |
Introduced ConsumerNeedsToSignGenerator type with methods for initializing and generating relevant metrics. |
sequenceDiagram
participant user as User
participant app as App
participant config as AppConfig
participant logger as Logger
participant cnsGen as ConsumerNeedsToSignGenerator
User->>App: Start (NewApp)
App->>Config: Load Chains
App->>Logger: Initialize Logger
App->>CnsGen: NewConsumerNeedsToSignGenerator(appConfig.Chains, logger)
CnsGen->>App: Initialized CNS Generator
App->>App: Continue App Initialization
App->>User: App Initialized
In the realm of code, where functions align, 🐇 A new generator's role does shine. 🐇 With chains and logs, it starts its quest, Ensuring validators sign with the best. Metrics now more precise and neat, The app's growth is no small feat! 🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
ConsumerNeedsToSignGenerator
to generate metrics for validators needing to sign blocks.