Skip to content

feat(net): optimize the log of synchronization failure#6381

Merged
kuny0707 merged 2 commits intotronprotocol:release_v4.8.1from
zeusoo001:sync-problem
Aug 7, 2025
Merged

feat(net): optimize the log of synchronization failure#6381
kuny0707 merged 2 commits intotronprotocol:release_v4.8.1from
zeusoo001:sync-problem

Conversation

@zeusoo001
Copy link
Contributor

What does this PR do?
Optimize the log of synchronization failure, Fixes #6272 , Fixes #6279

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

ReflectUtils.setFieldValue(peer, "tronState", TronState.INIT);

try {
peer.setBlockBothHave(new BlockCapsule.BlockId(Sha256Hash.ZERO_HASH, -1));
Copy link
Contributor

Choose a reason for hiding this comment

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

18:01:38.101 WARN [net] Peer /127.0.0.2 sync failed, reason: Num:-1,ID:ffffffffffffffff000000000000000000000000000000000000000000000000

Image

The error message here is not very clear - I suggest making it more specific. Additionally, it would be good to check other similar areas for consistency.

Copy link
Contributor

Choose a reason for hiding this comment

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

It has nothing to do with this modification. You can sort out the logs and optimize them uniformly.

@kuny0707 kuny0707 merged commit 5a487dc into tronprotocol:release_v4.8.1 Aug 7, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in java-tron Aug 7, 2025
@zeusoo001 zeusoo001 deleted the sync-problem branch November 5, 2025 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Exception occurred when synchronizing blocks gt highNoFork error reported when synchronizing blocks

6 participants