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

DevP2P: ETH: only create DEBUG msgs if debugging #2958

Merged
merged 4 commits into from
Aug 15, 2023

Conversation

jochem-brouwer
Copy link
Member

Currently, we always construct DEBUG messages on devp2p/ETH even if we are not debugging. This PR ensures these strings are only built when actually debugging. (Slight optimization)

@jochem-brouwer jochem-brouwer force-pushed the devp2p-only-debug-when-debugging branch from 0381a4c to 7a2493c Compare August 14, 2023 13:49
@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #2958 (80dc0ce) into master (e6dc9db) will decrease coverage by 0.07%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 88.66% <ø> (ø)
blockchain 92.58% <ø> (ø)
client 87.50% <ø> (-0.12%) ⬇️
common 98.56% <ø> (ø)
ethash ∅ <ø> (∅)
evm 70.43% <ø> (ø)
rlp ∅ <ø> (∅)
statemanager 84.43% <ø> (ø)
trie 89.92% <ø> (-0.25%) ⬇️
tx 95.88% <ø> (ø)
util 86.78% <ø> (ø)
vm 79.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@holgerd77 holgerd77 merged commit 8cde93d into master Aug 15, 2023
41 checks passed
@holgerd77 holgerd77 deleted the devp2p-only-debug-when-debugging branch August 15, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants