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

feature(net): integrate with libp2p v0.1.2 #5017

Merged
merged 48 commits into from
Mar 29, 2023

Conversation

317787106
Copy link
Contributor

@317787106 317787106 commented Feb 23, 2023

What does this PR do?

  • Support node with IPv6 address, besides IPv4
  • Node can publish known nodes list on DNS server
  • Support syncing node from DNS server
  • Support compressed message transmission among nodes
  • Compatible with libp2p v0.1

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

jwrct and others added 30 commits January 31, 2023 12:22
feat(net): set relay node flag
…lready exist; if ipv4 and ipv6 not exist, use local ipv4
@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2023

Codecov Report

Merging #5017 (cf3dfd2) into release_v4.7.2 (2b7588c) will increase coverage by 0.03%.
The diff coverage is 47.53%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@                 Coverage Diff                  @@
##             release_v4.7.2    #5017      +/-   ##
====================================================
+ Coverage             54.75%   54.79%   +0.03%     
- Complexity             8244     8265      +21     
====================================================
  Files                   842      842              
  Lines                 49753    49844      +91     
  Branches               5470     5503      +33     
====================================================
+ Hits                  27242    27311      +69     
+ Misses                20368    20367       -1     
- Partials               2143     2166      +23     
Impacted Files Coverage Δ
common/src/main/java/org/tron/core/Constant.java 50.00% <ø> (ø)
.../main/java/org/tron/core/config/args/SeedNode.java 100.00% <ø> (ø)
...n/java/org/tron/common/backup/message/Message.java 0.00% <0.00%> (ø)
...ore/net/messagehandler/FetchInvDataMsgHandler.java 4.30% <0.00%> (ø)
...in/java/org/tron/core/net/peer/PeerConnection.java 34.32% <0.00%> (ø)
.../main/java/org/tron/core/net/peer/PeerManager.java 37.07% <0.00%> (ø)
...n/core/net/service/handshake/HandshakeService.java 2.89% <0.00%> (-0.05%) ⬇️
...n/core/net/service/keepalive/KeepAliveService.java 40.00% <ø> (-5.46%) ⬇️
...re/net/service/nodepersist/NodePersistService.java 31.11% <0.00%> (-0.71%) ⬇️
.../org/tron/core/net/service/relay/RelayService.java 21.81% <ø> (ø)
... and 6 more

... and 9 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@317787106 317787106 changed the base branch from release_v4.7.1 to release_v4.7.2 March 17, 2023 03:53
@317787106 317787106 marked this pull request as ready for review March 23, 2023 09:24
@317787106 317787106 requested review from xxo1shine and jwrct March 29, 2023 06:55
@317787106 317787106 merged commit c5b27a6 into release_v4.7.2 Mar 29, 2023
@lvs007 lvs007 changed the title feature(net): integrate with libp2p v0.2 feature(net): integrate with libp2p v0.1.2 Jul 1, 2023
@rheddou
Copy link

rheddou commented Sep 20, 2023

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants