Skip to content

Instantly share code, notes, and snippets.

@7tarus
Last active March 4, 2023 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 7tarus/6913cf75724b59fbce45448dd3387a4f to your computer and use it in GitHub Desktop.
Save 7tarus/6913cf75724b59fbce45448dd3387a4f to your computer and use it in GitHub Desktop.
Luta contra o fascismo! Corre o teu bitcoin node em Windows.

Bitcoin, money of the people. For the people and by the people:

Install bitcoin core software.

Download

Go to https://bitcoincore.org/bin/bitcoin-core-24.0.1/ and install https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-win64-setup.exe

Check for newer versions on https://bitcoincore.org/bin/ At the time this guide was created 24.0.1 was the latest.

Install bitcoin-24.0.1-win64-setup.exe

In the windows search bar type %APPDATA% In the windows explorer you should see a folder Bitcoin. It there is none, create one. Open that folder and create a file named bitcoin.conf with a text editor like notepad. And copy paste the following:

	txindex=1
	
	server=1
	rpcbind=127.0.0.1
	rpcallowip=127.0.0.1
	rpcport=8332
	rpccookiefile=.cookie
	rest=1
	
	uacomment=i-love-ak-47

Save the file and exit the text editor.

After creating the Bitcoin folder you can access it directly on windows search typing %APPDATA%/Bitcoin

Run the bitcoin-qt software and your node is working.

Or use the following commands to start and stop the node on the command line bitcoind and bitcoin-cli stop

If you don't have enought storage space on the Drive C: or what to use another hard drive. Just add this to bitcoin.conf

datadir=D:\Bitcoin

And create the folder D:\Bitcoin

This in a example. The folder D:\Bitcoin will contain all the folders and files related to the bitcoin node. This folder will be used instead of the default one, %APPDATA%/Bitcoin

And put your bitcoin.conf in D:\Bitcointoo.

To start, stop and interact with the node since you are not using the default settings you need to add the parameter -conf=D:\Bitcoin\bitcoin.conf

bitcoind -conf=D:\Bitcoin\bitcoin.conf to start the node and bitcoin-cli -conf=D:\Bitcoin\bitcoin.conf stop to stop it.

Welcome to the great revolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment