Skip to content
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

monitor: split governance monitor into serveral methods #175

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

yutianwu
Copy link
Contributor

@yutianwu yutianwu commented Sep 9, 2022

Description

This pr will refactor governance monitor and split governance monitor into several methods to make the code more clean.

Changes

Notable changes:

  • refactor governance monitor

Copy link
Contributor

@keefel keefel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -251,34 +208,21 @@ func (m *Monitor) MonitorGovernanceBlocks() (err error) {
return fmt.Errorf("unpack GovernanceAssetPausedUpdate failed, err: %v", err)
}
// set up database info
l1EventInfo := &L1EventInfo{
l1EventInfo := &L1Event{
Copy link
Contributor

@forcodedancing forcodedancing Sep 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l1EventInfo can be renamed to l1Event. However, it is small, no big deal.

@yutianwu yutianwu merged commit 0ad5bbe into bnb-chain:develop Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants