[Feature] Remove unused discovery message definitions
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Refactorisation
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- java
- Domaine
- backend, networking
Piste de recherche
Start with protocol/src/main/protos/core/Discover.proto and identify the four legacy message definitions; keep Endpoint and BackupMessage unchanged. Read the Chinese and English protocol documents and the compatibility discussion in issue #6921 before deciding whether removal can proceed. If approved, regenerate protobuf sources from a clean state, compile, run the handshake and backup keepalive regression tests, and compare retained-message serialization against pre-change fixtures.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Background
protocol/src/main/protos/core/Discover.proto still contains four legacy message definitions that are no longer referenced by java-tron’s runtime code: PingMessage, PongMessage, FindNeighbours, and Neighbours. These proto definitions are redundant leftovers from the libp2p split.
UDP discovery now uses the separate proto definitions in p2p/src/main/proto/Discover.proto (introduced in PR #6992).
Rationale
Remove unused definitions to reduce maintenance overhead and avoid confusion with the UDP discovery.
Specification
- Remove the four legacy messages from
protocol/src/main/protos/core/Discover.proto. - Preserve
Endpoint, referenced byHelloMessage.from, andBackupMessage, used by backup keepalive messages, with their existing fields and options. - Update the Chinese and English protocol documents to point to the real p2p discovery definitions.
Test Specification
- Regenerate protobuf sources from a clean state and compile the project.
- Run the related handshake and backup keepalive regression tests.
- Compare serialization against pre-change fixtures for
Endpoint,HelloMessage, andBackupMessage.
Scope of Impact
The cleanup is intended to preserve node network behavior and the wire encoding of retained messages. It removes generated types and changes the file descriptor, so downstream code referencing the removed types must migrate or retain a compatible protocol version. Projects using their own copies are unaffected unless they adopt the removal.
Before removal, resolve whether these generated types fall under the public API compatibility policy in #6921. If they do, deprecate them for at least one release cycle and schedule removal for a future major release.
- Langage dominant
- Java
- Étoiles
- 4.2k
- Forks
- 1.8k
- Merge moyen
- 3 j 21 h
- PR mergées (30 j)
- 13
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tronprotocol/java-tron
-
[Feature] Validate ECKey inputs and improve key handlingPeut-être pris @Federico2014 l’a pris il y a 16 jours. Ouvertetype:feature
Difficulté 4/5 3-5 jours Accessibilité débutants 40/100
tronprotocol/java-tron#6994 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
type:feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
tronprotocol/java-tron#6989 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Robustness fixes for multiple issuesPeut-être pris @xxo1shine l’a pris il y a 18 jours. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
tronprotocol/java-tron#6969 · 8 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Feature] decouple json-rpc filter processing from ManagerPeut-être pris @0xbigapple l’a pris il y a 17 jours. Ouvertetype:feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 48/100
tronprotocol/java-tron#6963 · 8 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Feature] Remove unused SM2/SM3 crypto enginePeut-être pris @Federico2014 l’a pris il y a 15 jours. Ouvertetype:feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 28/100
tronprotocol/java-tron#6959 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de tronprotocol/java-tron
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
floci-io/floci#5369 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
sqlcipher/sqlcipher-android#97 · 1 commentaire ·
-
bug IIIF interoperability
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Netcracker/qubership-integration-platform#1046 ·
Les mainteneurs répondent en général sous 2 jours