hyperledger-firefly / hyperledger-firefly/cli
Make `FirstEvent` configurable to better support public chain with multi-party
- Lenguaje dominante
- Go
- Estrellas
- 66
- Forks
- 64
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
As per the discussion here: https://discord.com/channels/905194001349627914/1306104244486668369/1306929797296816200, Firefly-cli currently hard code the starting block of the Firefly batch pin contract event to `0` to ensure no events could be missed. But this is impractical when using multi-party mode with a public chain: https://github.com/hyperledger/firefly-cli/blob/14e7721bf8cca1fc6b2b217d00a5d79926a17af2/internal/stacks/stack_manager.go#L988
## Workaround
The currently workaround is to update the firefly_core yaml generated manually to start indexing the events from a desired block number. (hint: `newest` can be used if you don't care about missing events which breaks integrity of indexed data)
An enhancement would be making the FirstEvent configurable
Guía de contribución
Línea de trabajo
Comienza en internal/stacks/stack_manager.go, alrededor de la línea 988, donde el evento del contrato de pin por lotes de FireFly comienza en el bloque 0, y sigue cómo el YAML firefly_core generado recibe su configuración de indexación. Determina cómo debería exponerse FirstEvent como configuración y verifica que la indexación comience en el bloque solicitado sin editar manualmente el YAML.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go
- Área
- blockchain, cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100