ElementsProject / ElementsProject/elements

`initialfreecoins` does not work for descriptor wallets.

Open
#1,106 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

I am not even sure if this should work. If it worked earlier for me. But it does not work now.

Steps to reproduce:
Set the following in the elements.conf file (regtest mode)
```
initialfreecoins=2100000000000000
anyonecanspendaremine=1
```

Create a descriptor wallet
```
elements-cli -named createwallet wallet_name=descriptors_e1 descriptors=true
```
Wait for funds to mature
```
elements-cli -generate 101
```
Check the balance
```
elements-cli getbalance
```
This should be equal to `2100000000000000`, but is `0`. The same works for non-descriptor wallets

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.