Bitcoin Forum
May 26, 2024, 07:20:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: createwallet does not work in alternate chains (23.99.0)  (Read 89 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1610
Merit: 6761


bitcoincleanup.com / bitmixlist.org


View Profile WWW
August 21, 2022, 06:43:09 PM
 #1

As the version number in the title implies, I am running a debug version of Bitcoin Core 23.0, because I am trying to test a small feature I have just added to part of the wallet subsystem.

The RPC for creating a wallet in bitcoin-cli, is createwallet, and loadwallet for loading a wallet. Neither of these are present in Regtest, Signet, or Testnet networks. In fact the entire Wallet subsystem calls seem to be missing. Attempting to call any of them returns "method not found".

I don't want to take my 0.21.1 node offline to run the wallet tests on mainnet, because that will upgrade the file formats irreversibly. So how am I supposed to create a wallet on the other chains?

Build options (Ubuntu 20.04 LTS):
Code:
./autogen.sh && ./configure --enable-debug && make check -j4

Runtime options:
Code:
./bitcoind -nodaemon -chain=xxx <I tried all 3 of them> -debug=walletdb -debug=rpc

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6657


Just writing some code


View Profile WWW
August 21, 2022, 10:26:43 PM
 #2

In fact the entire Wallet subsystem calls seem to be missing. Attempting to call any of them returns "method not found".
You're probably missing the wallet dependencies so configure automatically disabled the wallet. Make sure you have at least one of sqlite and bdb installed.

I don't want to take my 0.21.1 node offline to run the wallet tests on mainnet, because that will upgrade the file formats irreversibly.
No it won't. Any background upgrades are always backwards compatible. Anything that is not backwards compatible requires explicit user action.

NotATether (OP)
Legendary
*
Offline Offline

Activity: 1610
Merit: 6761


bitcoincleanup.com / bitmixlist.org


View Profile WWW
August 22, 2022, 04:18:52 AM
 #3

In fact the entire Wallet subsystem calls seem to be missing. Attempting to call any of them returns "method not found".
You're probably missing the wallet dependencies so configure automatically disabled the wallet. Make sure you have at least one of sqlite and bdb installed.

Apparently, I did not have libsqlite3-dev installed, and my BDB build path wasn't exported either. I was 100% sure I built BDB before, since that concided with a pevious source compilation. I forgot to export it again, and run configure with that.

All chains have wallet support now.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!