一、发现问题
Bitcoin Core 版本 v27.0.0
创建空白钱包导入私钥出现以下问题
1、
Only legacy wallets are supported by this command (code -4)
2、BDB wallet creation is deprecated and will be removed in a future release. In this release it can be re-enabled temporarily with the -deprecatedrpc=create_bdb setting. (code -4)
二、解决方法
cmd:执行
cd D:\MyApp\Bitcoin
bitcoin-qt.exe -deprecatedrpc=create_bdb
钱包->窗口->控制台:执行
createwallet "mybtc" false true "" false false
importprivkey "your_private_key(WIF格式)" "mybtc_addr" false