Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Output enode URL on startup #1137

Merged
merged 7 commits into from
Mar 20, 2019

Conversation

lucassaldanha
Copy link
Contributor

@lucassaldanha lucassaldanha commented Mar 20, 2019

PR description

  • Output enode URL on startup
  • Added getSelfEnodeURL() method to P2PNetwork interface
  • Updated NetEnode to use getSelfEnodeURL()

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM.

.getAdvertisedPeer()
.map(p -> OptionalInt.of(p.getEndpoint().getUdpPort()))
.filter(port -> port.getAsInt() != listeningPort)
.orElse(OptionalInt.empty());
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the "are the ports the same" logic live inside EnodeURL?

@lucassaldanha lucassaldanha merged commit f6c03a2 into PegaSysEng:master Mar 20, 2019
@lucassaldanha lucassaldanha deleted the enode-startup branch March 20, 2019 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants