btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 590 forks source link

Unable to create a new wallet #949

Closed jrick closed 2 months ago

jrick commented 2 months ago

Running master branch:

$ btcwallet --usespv -u jrick -P banana --testnet --create
Enter the private passphrase for your new wallet: 
Confirm passphrase: 
Do you want to add an additional layer of encryption for public data? (n/no/y/yes) [no]: 
Do you have an existing wallet seed you want to use? (n/no/y/yes) [no]: 
Your wallet generation seed is:
378610a42da8f3339155aed68c00f889c35fd6f21a62193bced79704797eabf6
IMPORTANT: Keep the seed in a safe place as you
will NOT be able to restore your wallet without it.
Please keep in mind that anyone who has access
to the seed can also restore your wallet thereby
giving them access to all your funds, so it is
imperative that you keep it in a secure location.
Once you have stored the seed in a safe and secure location, enter "OK" to continue: OK
Creating the wallet...
Unable to create wallet: function not implemented

Surely I'm not the first to notice this...?

Roasbeef commented 2 months ago

Can you give more details w.r.t your set up?

I was able to run your command (fresh clone off master):

roasbeef@obelisk:~/go/src/github.com/btcsuite/btcwallet$ btcwallet --usespv -u jrick -P banana --testnet --create

Enter the private passphrase for your new wallet:
Confirm passphrase:
Do you want to add an additional layer of encryption for public data? (n/no/y/yes) [no]: n
Do you have an existing wallet seed you want to use? (n/no/y/yes) [no]: n
Your wallet generation seed is:
cfe44c700e822319bdfe8497219d3d7d4308fcce5b6426872d805f6cfe190e28
IMPORTANT: Keep the seed in a safe place as you
will NOT be able to restore your wallet without it.
Please keep in mind that anyone who has access
to the seed can also restore your wallet thereby
giving them access to all your funds, so it is
imperative that you keep it in a secure location.
Once you have stored the seed in a safe and secure location, enter "OK" to continue: OK
Creating the wallet...
2024-09-10 20:13:44.915 [INF] WLLT: Opened wallet
The wallet has been created successfully.
jrick commented 2 months ago

looks to be specific to running btcwallet on openbsd. I can't reproduce it on linux. Updating bbolt to the latest release fixes the issue.