Skip to content

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

Merged
317787106 merged 48 commits intorelease_v4.7.2from
feature/libp2p_v2.0
Mar 29, 2023
Merged

feature(net): integrate with libp2p v0.1.2#5017
317787106 merged 48 commits intorelease_v4.7.2from
feature/libp2p_v2.0

Conversation

@317787106
Copy link

@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

@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