ruimarinho / docker-bitcoin-core

A bitcoin-core docker image
https://hub.docker.com/r/ruimarinho/bitcoin-core/
MIT License
367 stars 213 forks source link

Compile sqlite to enable wallet descriptors #132

Closed AlonzoRicardo closed 1 year ago

AlonzoRicardo commented 1 year ago

In version >= 0.23 Descriptor wallets became the default type of wallet which were experimentally introduced in version 0.21 and only possible by passing descriptors=true to the createwallet call. This requires sqlite to be compiled, otherwise this error is thrown.

error code: -4
error message:
Compiled without sqlite support (required for descriptor wallets)

References

gcool-info commented 1 year ago

@AlonzoRicardo - is this something you're still willing to merge?

AlonzoRicardo commented 1 year ago

@AlonzoRicardo - is this something you're still willing to merge?

Yes, but it is up to @ruimarinho

ruimarinho commented 1 year ago

Tested with:

bitcoin-cli -chain=regtest -named createwallet wallet_name="mywallet" descriptors=true

Output is:

2023-03-18T17:46:07Z Using SQLite Version 3.40.1
2023-03-18T17:46:07Z Using wallet /home/bitcoin/.bitcoin/regtest/wallets/mywallet
2023-03-18T17:46:07Z init message: Loading wallet…

Thanks @AlonzoRicardo!