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

p2p: fix empty allow list #872

Merged
merged 2 commits into from
Jul 28, 2022
Merged

p2p: fix empty allow list #872

merged 2 commits into from
Jul 28, 2022

Conversation

corverroos
Copy link
Contributor

When --p2p-allowlist is not defined, it should default to "allow all". But an empty string results in a empty netlist which results in "allow none". This is only now a problem since geth's discv5 previously ignored NetRestrict.

category: bug
ticket: none

@corverroos
Copy link
Contributor Author

See ethereum/go-ethereum#25304.
This should result in these tests passing: #868

@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #872 (dc3be62) into main (827d675) will increase coverage by 0.05%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##             main     #872      +/-   ##
==========================================
+ Coverage   54.39%   54.45%   +0.05%     
==========================================
  Files         114      114              
  Lines       12211    12213       +2     
==========================================
+ Hits         6642     6650       +8     
+ Misses       4603     4598       -5     
+ Partials      966      965       -1     
Impacted Files Coverage Δ
p2p/discovery.go 47.88% <28.57%> (-1.39%) ⬇️
core/dutydb/memory.go 70.63% <0.00%> (-1.28%) ⬇️
core/qbft/qbft.go 81.54% <0.00%> (+0.42%) ⬆️
core/leadercast/transport.go 76.33% <0.00%> (+1.18%) ⬆️
dkg/transport.go 66.66% <0.00%> (+12.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 827d675...dc3be62. Read the comment docs.

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jul 28, 2022
@obol-bulldozer obol-bulldozer bot merged commit 0eedd36 into main Jul 28, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/udpallow branch July 28, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants