ElementsProject / ElementsProject/elements
Intermittent stall in unit tests
- Lenguaje dominante
- C++
- Estrellas
- 1.2k
- Forks
- 416
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 15
Descripción
There is a race condition where we wind up enabling dynafed globally when running all the unit tests. Then in the `TestChain100Setup` (used by most of the wallet tests, for example), try to PoW up a bunch of blocks, in the line
https://github.com/ElementsProject/elements/blob/88067ddbe4223e43a4c86912928b28b834bbf69e/src/test/test_bitcoin.cpp#L168
which will just run forever. In dynafed `nNonce` doesn't go into the hash.
We should either force dynafed off for these tests, or just replace the PoW loop with a signed-block setup.
Guía de contribución
Línea de trabajo
Comienza en src/test/test_bitcoin.cpp en la línea enlazada de TestChain100Setup y sigue cómo se habilita dynafed mientras se ejecutan las pruebas unitarias. Reproduce el bloqueo ejecutando la suite completa de pruebas unitarias y, después, elige uno de los enfoques indicados en el issue. Se considera terminado cuando las pruebas relacionadas con la wallet finalizan sin que el bucle de PoW se ejecute indefinidamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- blockchain, testing
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100