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

cmd/bootnode: move bootnode to own package #1512

Merged
merged 2 commits into from
Dec 6, 2022
Merged

Conversation

corverroos
Copy link
Contributor

Move bootnode into its own package in preparation for adding metrics and more stuff to it.

category: refactor
ticket: #1506

@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Base: 54.41% // Head: 54.44% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (5b4b595) compared to base (cb9a968).
Patch coverage: 37.12% of modified lines in pull request are covered.

❗ Current head 5b4b595 differs from pull request most recent head 802c2c1. Consider uploading reports for the commit 802c2c1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1512      +/-   ##
==========================================
+ Coverage   54.41%   54.44%   +0.03%     
==========================================
  Files         149      150       +1     
  Lines       19058    19058              
==========================================
+ Hits        10370    10376       +6     
+ Misses       7292     7284       -8     
- Partials     1396     1398       +2     
Impacted Files Coverage Δ
cmd/bootnode.go 0.00% <0.00%> (-30.82%) ⬇️
cmd/cmd.go 77.90% <0.00%> (ø)
cmd/bootnode/bootnode.go 38.28% <38.28%> (ø)
app/vmock.go 73.05% <0.00%> (-2.60%) ⬇️
core/dutydb/memory.go 68.59% <0.00%> (-0.70%) ⬇️
core/priority/prioritiser.go 62.55% <0.00%> (+2.88%) ⬆️
dkg/transport.go 66.66% <0.00%> (+12.96%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

HTTPAddr string
P2PConfig p2p.Config
LogConfig log.Config
AutoP2PKey bool
Copy link
Contributor

Choose a reason for hiding this comment

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

why the auto prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is existing logic, I'm just moving it.

RelayLogLevel string
}

// Run starts an Obol libp2p-tcp-relay and udp-discv5 bootnode.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Run starts an Obol libp2p-tcp-relay and udp-discv5 bootnode.
// Run starts a libp2p-tcp-relay and udp-discv5 bootnode.

Since anyone can start a bootnode, no?

Copy link
Contributor Author

@corverroos corverroos Dec 6, 2022

Choose a reason for hiding this comment

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

yeah but it is a "obol bootnode"

Copy link
Contributor

Choose a reason for hiding this comment

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

or a "charon bootnode" ?

cmd/bootnode/bootnode.go Outdated Show resolved Hide resolved
)

<-ctx.Done()
_ = tcpNode.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we not handle error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is existing logic, I'm just moving it.

Copy link
Contributor

@xenowits xenowits left a comment

Choose a reason for hiding this comment

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

LGTM!

@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label Dec 6, 2022
@obol-bulldozer obol-bulldozer bot merged commit 4242884 into main Dec 6, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/bootnodemove branch December 6, 2022 12:57
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