Comment
Author: Admin | 2025-04-28
That the daemon keeps running and restarts after crash or forced stop via kill.With the following two commands we start the daemon and constantly print the output.~$ sudo systemctl start bitcoind-regtest~$ sudo journalctl -xn -f -u bitcoind-regtestFor all:Switch to new console and let the bitcoind running. We generate 101 new blocks(starting from the genesis block), in order to be able to access the first oneand get 50 BTC.~$ bitcoind -regtest setgenerate 101... # Wait until all blocks are generated, ~1 minute~$ bitcoind -regtest getbalance50.00000000 # Congratulations! You have now your first BTC that you can spent.Where to go from here? Please read further how to spent this BTC and how to makethe whole a little bit more effective, with less typing and more automated.Preparing your working environmentWe don't want to type each time bitcoind -regtest. The command br is easierto type and easy to remember: The beginning letters of the command.> ~/.bashrc; source ~/.bashrc~$ br getbalance">~$ echo 'alias br="bitcoind -regtest"' >> ~/.bashrc; source ~/.bashrc~$ br getbalanceTODO[INSTALLATION] If bitcoind is not found, install it automatically.[SECURITY] Add the signature file, of bitcoin-core, to this repository andexplain how to check it and/or check it automatically during installation.[AUTOMATION] Provide scripts that automate the whole node setup and spendingprocess, e.g.by simulated random transfers.[FEATURE] Explain how the blockchain could be stored in a SQL database andaccessed via your application.[PORTABILITY] Describe how the node can be virtualized with vagrant or docker.Provide also the related scripts and configuration files.ScreenshotsSupport this projectPlease help us to extend and improve this project.Fork it!Make your changes.Create a pull request.Alternatively you can also donate, if you want to motivate us to improve thisproject even further.1LKzkn4CfktnSXDMNt856KqHcjMdTCp57SIf clicking on the line above does not work, use this payment info:Pay to: 1LKzkn4CfktnSXDMNt856KqHcjMdTCp57S Message: Donation for bitcoin-regtest-node open source project.
Add Comment