ElementsProject / ElementsProject/elements
[Post -0.21] Runing createwallet on a node should anyonecanspendismine it should rescan by default
- Lenguaje dominante
- C++
- Estrellas
- 1.2k
- Forks
- 416
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 15
Descripción
With initialfreecoins and anyonecanspend in `elements.conf`, we should rescan the wallets for looking for anyonecanspend outputs.
Pre 0.21, this is not an issue because whenever the default wallet was created, it autoscanned the blockchain looking for anyonecanspend outputs. But since 0.21, there is no default wallet creation and using `createwallet` does not scan the blockchain for anyonecanspend outputs.
```
initialfreecoins=2100000000000000
anyonecanspendaremine=1
```
Quick fix: After creating a wallet with `createwallet`, in order to scan anyonecanspends run either `importprivkey `(tested) and ``rescanblockchain` or`(should work, but not tested).
If this is annoying/unergonomic to fix, we should at least update the documentation about this behavior. Notably, our tutorials from https://elementsproject.org/elements-code-tutorial/basic-operations won't work.
Guía de contribución
Línea de trabajo
Comienza con el RPC createwallet y compara su comportamiento con la ruta de creación de la wallet predeterminada anterior a 0.21. Usa las opciones initialfreecoins y anyonecanspendaremine, y comprueba después si se encuentran salidas anyonecanspend sin la solución alternativa de importprivkey y rescanblockchain. Se considera terminado cuando la nueva wallet vuelve a escanear de forma predeterminada, o cuando el tutorial documentado y el comportamiento coinciden claramente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- blockchain
- 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