Skip to content

Conversation

@317787106
Copy link
Contributor

@317787106 317787106 commented Aug 22, 2023

What does this PR do?

  • delete four unused config items in CommonParameter. include:
  1. node.discovery.public.home.node
  2. node.discovery.ping.timeout
  3. node.p2p.pingInterval
  4. p2pNodeId

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@317787106 317787106 changed the title delete four unused paramaters in Args feat(net): delete four unused paramaters in Args Aug 22, 2023
@317787106 317787106 self-assigned this Aug 22, 2023
//public static final String NODE_DISCOVERY_PUBLIC_HOME_NODE = "node.discovery.public.home.node";
//public static final String NODE_DISCOVERY_PING_TIMEOUT = "node.discovery.ping.timeout";

public static final String NODE_P2P_PING_INTERVAL = "node.p2p.pingInterval";
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not delete NODE_P2P_PING_INTERVAL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there is something wrong when split pr. I have deleted it.

public int minParticipationRate;
@Getter
public P2pConfig p2pConfig;
@Getter
Copy link
Contributor

Choose a reason for hiding this comment

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

This modification has nothing to do with this PR, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there is something wrong when split pr. I have deleted it.

// public long nodeDiscoveryPingTimeout;
// @Getter
// @Setter
// public long nodeP2pPingInterval;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it commented out instead of just deleting the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could delete it next release version.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just delete it?

+ 1, git ensures that changes are kept.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok,I will delete it

@317787106 317787106 linked an issue Aug 25, 2023 that may be closed by this pull request
@317787106 317787106 merged commit 1536bc9 into tronprotocol:develop Aug 30, 2023
@halibobo1205 halibobo1205 added this to the GreatVoyage-v4.7.3 milestone Sep 12, 2023
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.

Delete four unused paramaters in Args

4 participants