Knots migration

Yes, it is possible to switch from the Bitcoin Core service to the Bitcoin Knots service on Start9's StartOS without performing a new Initial Block Download (IBD).
The reason this works is that Bitcoin Knots is a derivative of Bitcoin Core. They both use the exact same format for storing blockchain data (the blocks
and chainstate
directories). The process involves instructing the new Bitcoin Knots service to use the existing data downloaded by the Bitcoin Core service.
Because StartOS isolates data for each service, you cannot simply install Knots and have it "find" the data. You must manually move or re-assign the data volume.
General Procedure
The exact steps can vary slightly with StartOS updates, but the high-level process will be as follows. Always ensure you have a backup of your wallet file (wallet.dat
) before attempting this.
- Backup Your Wallet:
- Navigate to your Bitcoin Core service in the StartOS UI.
- Go to
Config
>Show Advanced Info
. - Find the option to
Create new backup
. This will back up yourbitcoin.conf
and your criticalwallet.dat
file. Download and save this backup to a secure, external location.
- Stop Bitcoin Core:
- In the StartOS UI, go to your Bitcoin Core service page and stop the service. It is crucial that the service is not running when you move the data to avoid corruption.
- Install Bitcoin Knots:
- If you haven't already, go to the Marketplace and install the Bitcoin Knots service. Do not start it yet. If it starts automatically, stop it immediately.
- Transfer Blockchain Data:
This is the most critical step. StartOS manages data in isolated volumes. The goal is to copy the contents of Core'smainnet
volume to the Knots'mainnet
volume.- Use the StartOS File Browser service (you may need to install it from the Marketplace if you haven't).
- Navigate to the directory where service data is stored. This is typically
/mnt/embassy-data/package-data/volumes/
. - You will see directories for each of your installed services, identified by their package ID (e.g.,
bitcoin
for Bitcoin Core andknots
for Bitcoin Knots). - Inside the
bitcoin/data/mainnet
directory, you will find the blockchain data (blocks
,chainstate
, etc.). - Copy all the contents from
bitcoin/data/mainnet
toknots/data/mainnet
.- Important: Do not copy the
mainnet
folder itself, but rather the contents inside it. The destinationknots/data/mainnet
directory should be empty before you begin the copy. - This copy operation can take a significant amount of time, depending on the speed of your drive. Be patient and let it complete.
- Important: Do not copy the
- Transfer Wallet and Config:
- Copy your
bitcoin.conf
and yourwallet.dat
file from the Bitcoin Core data directory to the Bitcoin Knots data directory. If you made a backup in Step 1, you can extract these files from the backup.s9pk
file (it's just a zip archive). - The
wallet.dat
file will be inbitcoin/data/mainnet/wallets/wallet.dat
or a similar path. Copy it to the corresponding location in theknots/data
volume. - Copy your
bitcoin.conf
to theknots/data
directory.
- Copy your
- Start Bitcoin Knots:
- Navigate to the Bitcoin Knots service in your StartOS UI.
- Start the service.
- Verify:
- Check the logs for Bitcoin Knots. You can access these from its service page.
- You should see messages indicating it is loading block index and using existing block files. You should not see messages indicating a new IBD is starting from block 0.
- The node will then connect to peers and sync the few blocks and transactions that have occurred since you last ran Bitcoin Core. This should be very fast.
Important Considerations
- Version Compatibility: This process is most reliable when the Bitcoin Core version you were running is not drastically older than the Bitcoin Knots version you are installing. Since Knots is based on Core, major differences could potentially require a re-index.
- Re-indexing: If Knots fails to start correctly and mentions a corrupt
chainstate
, you may need to force a re-index. This is still much faster than a full IBD. You can do this by addingreindex=1
to yourbitcoin.conf
file, starting the service, and then removing that line after it has successfully started once. - Start9 Support: The Start9 team and community are the best resource for the most current, platform-specific instructions. If you are unsure, it is highly recommended to ask in the official Start9 community channels (e.g., Matrix, Telegram) before proceeding.