[Feature] Remove unused discovery message definitions
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- java
- Domínio
- backend, networking
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
As clarified in #6921, these four generated message types are unsupported legacy types and do not require a deprecation cycle. Their removal intentionally changes the generated API and file descriptor, while preserving node interoperability and the wire encoding of the retained messages.
- Linguagem predominante
- Java
- Estrelas
- 4.2k
- Forks
- 1.8k
- Merge médio
- 3d 7h
- PRs com merge (30d)
- 48
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de tronprotocol/java-tron
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 70/100
tronprotocol/java-tron#7044 · 4 comentários ·
Mantenedores costumam responder em até 2 dias
-
[Feature] Validate ECKey inputs and improve key handlingTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertatype:feature
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 40/100
tronprotocol/java-tron#6994 · 5 comentários ·
Mantenedores costumam responder em até 2 dias
-
type:feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
tronprotocol/java-tron#6989 · 7 comentários ·
Mantenedores costumam responder em até 2 dias
-
[Feature] decouple json-rpc filter processing from ManagerTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertatype:feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 48/100
tronprotocol/java-tron#6963 · 8 comentários ·
Mantenedores costumam responder em até 2 dias
-
[Feature] Remove unused SM2/SM3 crypto engineTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertatype:feature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 28/100
tronprotocol/java-tron#6959 · 3 comentários ·
Mantenedores costumam responder em até 2 dias
Todas as issues de tronprotocol/java-tron
Issues semelhantes
-
bug subsystem:agent-harness triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
ShaftHQ/SHAFT_ENGINE#7797 ·
Mantenedores costumam responder em até 1 dia
-
ARM: Q flag should be stickyAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
NationalSecurityAgency/ghidra#10155 ·
Mantenedores costumam responder em até 2 dias
-
bug web-ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
jenkinsci/jenkins#27705 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
"item-tooltip-keyboard-fix" crashes the game when opening the Items tab of the statistics menuAbertamod bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
elmital/FixMCStats#65 · 3 comentários ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
QuranHub/quranhub-android#354 ·
Mantenedores costumam responder em até 2 dias