Bitcoin Forum
May 10, 2024, 03:10:02 AM *
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: 1596
Merit: 6734


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
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
1715310602
Hero Member
*
Offline Offline

Posts: 1715310602

View Profile Personal Message (Offline)

Ignore
1715310602
Reply with quote  #2

1715310602
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715310602
Hero Member
*
Offline Offline

Posts: 1715310602

View Profile Personal Message (Offline)

Ignore
1715310602
Reply with quote  #2

1715310602
Report to moderator
1715310602
Hero Member
*
Offline Offline

Posts: 1715310602

View Profile Personal Message (Offline)

Ignore
1715310602
Reply with quote  #2

1715310602
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


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: 1596
Merit: 6734


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!