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

Clean Up Deposit Processing Logs #13611

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Clean Up Deposit Processing Logs #13611

merged 2 commits into from
Feb 13, 2024

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Feb 13, 2024

What type of PR is this?

Cleanup

What does this PR do? Why is it needed?

This PR cleans up our deposit processing logs with an interval of 1024.

Which issues(s) does this PR fix?

Fixes #13548

Other notes for review

@nisdas nisdas added Ready For Review A pull request ready for code review v5 Issues that should be addressed before v5 release labels Feb 13, 2024
@nisdas nisdas requested a review from a team as a code owner February 13, 2024 06:02
"merkleTreeIndex": index,
}).Debug("Deposit registered from deposit contract")
// Log the deposit received periodically
if index%depositLoggingInterval == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to deal with the case when depositLoggingInterval is zero

validDepositsCount.Inc()
// Notify users what is going on, from time to time.
if !s.chainStartData.Chainstarted {
deposits := len(s.chainStartData.ChainstartDeposits)
if deposits%512 == 0 {
if deposits%depositLoggingInterval == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sand here

Copy link
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

Discussed in slack

@nisdas nisdas added this pull request to the merge queue Feb 13, 2024
Merged via the queue into develop with commit 9aa55b4 Feb 13, 2024
17 checks passed
@nisdas nisdas deleted the cleanUpDepositLogs branch February 13, 2024 10:47
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review v5 Issues that should be addressed before v5 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debug verbosity generates massive amount of "Deposit registered" (--enable-eip-4881)
2 participants