fix(net): fix the unclear reason codes returned in disconnection messages by jwrct · Pull Request #6394 · tronprotocol/java-tron
What does this PR do?
Closes #5989
Why are these changes required?
This PR has been tested by:
- Unit Tests
- Manual Testing
Follow up
Extra details
jwrct
changed the base branch from
develop
to
release_v4.8.1
jwrct
changed the title
fix(net): fix for ambiguous reason code in disconnect messages
fix(net): fix the unclear reason codes returned in disconnection messages
| BlockCapsule.BlockId hid = ChainBaseManager.getChainBaseManager().getHeadBlockId(); | ||
| Protocol.HelloMessage.BlockId hBlockId = Protocol.HelloMessage.BlockId.newBuilder() | ||
| .setHash(ByteString.copyFrom(new byte[0])) | ||
| Protocol.HelloMessage.BlockId okBlockId = Protocol.HelloMessage.BlockId.newBuilder() |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about using "validBLockId" instead of "okBlockId"?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test case adjustment only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters