LSPS2: Isolate `PeerState` types via a `sealed` sub-module
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 22/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- backend, blockchain
Línea de trabajo
This is an architectural refactor of the LSPS2 service handler: move PeerState and related types into a sealed sub-module so they are only reachable through dedicated internal pub methods, shrinking the places that set needs_persist. Start from the existing LSPS2 handler and any work already sketched in #4008. Done means state changes that must be persisted go only through that API and the rest of the handler no longer mutates PeerState directly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The LSPS2 service handler has a lot going on. In particular, it might currently is hard to follow when we actually make a state change that needs to be persisted.
We should isolate the PeerState and related types to a sealed sub-module to ensure we can only access/modify it via dedicated internal pub API methods. This would reduce the number of places where we need to set needs_persist, making it much less error prone.
FWIW, I started down this road as part of #4008, but this would be huge refactor on its own right so decided not to continue for the time being.
- Lenguaje dominante
- Rust
- Estrellas
- 1.4k
- Forks
- 482
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lightningdevkit/rust-lightning
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
lightningdevkit/rust-lightning#4767 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
lightningdevkit/rust-lightning#1849 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
lightningdevkit/rust-lightning#4764 · 3 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 22/100
lightningdevkit/rust-lightning#4757 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
lightningdevkit/rust-lightning#4739 ·
Todos los issues de lightningdevkit/rust-lightning
Issues similares
-
bug help wanted ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
userFRM/egui-charts#4292 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Tripstack-Corp/spyc#1352 ·
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area:tui enhancement P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
agent-of-empires/agent-of-empires#6077 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día