Seems like you’re not running the node in regtest mode. Regtest requires a few MB of storage to run. If you intend to run the node in mainnet than you need at least 500GB. You can enable pruning which will reduce the size of the blockchain by removing old data, but it will still take days to sync.
You can also add bitcoin repo to apt and install it.:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
This should create the config file in /etc
if you want to run bitcoin as a systemd service, it also creates a bitcoin user under which the process will run in that case, alternatively you can run bitcoin as the current user with bitcoind
command. The config folder will then be in ~/.bitcoin
.
Personally I prefer this approach because I don’t like snap, seems like an unnecessary abstraction around the Linux system and using regular package managers gives you a more “proper” install.
Hello Ales,
Thanks for your email reply. After some trial and error efforts to run Bitcoin Core smoothly, I decided to allocate 1TB space to run the programme. I downloaded Bitcoin Core, it is fully synchronised and takes ca. 200GB space. I also fully synchronised Bitcoin test this takes ca. 20GB space.
- How can I run regtest mode smoothly?
- Why regtest mode is not able to detect my wallet although testnet does?
The testnet runs fine but I am having troubles running the regtest mode. The following shows up: “error code: -18 error message: No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A default wallet is no longer automatically created)”
Regtest:
Testnet:
Thank you in advance for your help.
Have you tried creating a wallet in regtest with createwallet
?
Hello again Ales,
I tried the following command line but to no avail.
It seems that I am running into a bigger issue when typed regtest mode command line: ./bitcoind -regtest -printtoconsole. DNS does not seem to be available.
This sreen takes ages to move to the next line. How do I fix this? And how do I create a wallet on regtest mode?
Thanks
Use ./bitcoin-cli -regtest createwallet testwallet
. The DNS is not an issue because there are no seed nodes for regtest.
Fantastic Ales, the command-line worked just fine!
I have created several wallets so I can transfer funds among them.
I attempted erase testwallet4 that I have created by using the command line:
./bitcoin-cli -regtest erasewallet testwallet4 or
./bitcoin-cli -regtest deletewallet testwallet4
It did not work. These seem not to be an option.
-
How do I erase/ delete a wallet?
-
Is there a document where I can find other command-line options, for example "-prune; -reindex; -printtoconsole; etc.?
Again, thank you very much for your help.
Live long and prosper
I’m not aware of any easy way to remove a wallet. But if you’re fine by just removing anything you can remove the Bitcoin data directory: https://en.bitcoin.it/wiki/Data_directory
You can always use the help command to get a list of all options bitcoin-cli help
Hello Ales,
I could locate the wallets at …\AppData\Roaming\Bitcoin\regtest\wallets. I deleted the wallets I did not need. Perhaps, this is one of the ways to simply go about the issue.
Many thanks,
Hello, I have a question, when I try to send bitcoin to another address in the regtest, it fails and displays this: Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable
-fallbackfee. Does anybody knows how to solve it?
Thanks
When i was mining on regtest mode, why is the block reward 50? Is it because the blockchain is new and the code is starting all over.?
Yes you should enable fallback fee. This default behavior was removed a while ago so its better to enable it on regtest.
Yes, its a new chain and uses the non halved rewards. If you were to mine 210000 blocks the rewards should get halved to 25 due to first halving.
How do I enable a fallback fee in regtest?
You do that, let me know what you find out
You can add a -fallbackfee=0.001
parameter when starting bitcoind
Obviously the first block mined has 103 confirmations, not 101.
Also, we generated the 103’rd block, not the 3rd.
I started 40 mins ago. at 50k blocks. This will take a bit…
I am on block #168744. block mining has slowed down a bit, bit still running! half way there!!!