feat(net): add strategy to acquire effective peer if needed by 317787106 · Pull Request #5088 · tronprotocol/java-tron

Copy link

@317787106 317787106 commented

Mar 23, 2023

edited

Loading

What does this PR do?

Add a new strategy that check if the node is isolated; if so, then try to acquire an effective peer.

Why are these changes required?

Sometimes, all peers of one node need to sync from it, then the node is called isolated island. This node's head block number doesn't grow, we need to find an effective peer to sync and broadcast messages.

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details