ElementsProject / ElementsProject/elements

[Post -0.21] Runing createwallet on a node should anyonecanspendismine it should rescan by default

Offen
#956 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
1.2k
Forks
416
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
15

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.