Difference between revisions of "Resyncing SPV file"

From Bisq Wiki
Jump to navigation Jump to search
(Added reference to bisq docs & heading format alongside table of contents so we can "deep link)
(Add section recommending connection to own Bitcoin node for persistent/slow SPV sync problems (incl. links); minor clarity improvements & heading fix.)
 
(65 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
'''Resyncing the SPV file''' (Simplified Payment Verification file, `bisq.spvchain`) can often solve wallet issues within Bisq, such as an incorrect balance showing, missing transactions, or other synchronization problems.
  
 +
__TOC__
  
The Bisq application makes use of Bitcoin's Simplified Payment Verification or SPV for short. This allows the application to verify if a particular transaction is included in a block without having to download that entire block.
+
== How to Resync the SPV File ==
  
However, if the SPV file in your bisq application were to become corrupted or fall out of sync it could lead to any number of wallet issues, such as Bisq not displaying the correct account balance.
+
It is generally best to initiate an SPV file resync using the button within the Bisq application interface. However, if Bisq cannot start properly, you may need to initiate it manually via the file system.
  
This can be resolved by deleting the SPV file and re-sycing Bisq. The data contained in the SPV file is a collection of data from the Bitcoin blockchain which allows Bisq to retrieve transaction information.  
+
=== From the Bisq Interface ===
 +
This is the recommended method if Bisq is operational.
 +
# Go to `Settings` > `Network Info`.
 +
# Click the `Delete SPV File and Resync` button.
 +
# Bisq will prompt you to restart the application '''twice'''. Follow the prompts carefully.
  
By deleting it you allow Bisq to re-sync the file with the Bitcoin blockchain and fix any potential errors.  
+
{{Admonition_Warn|'''Sync Time & Performance:'''
 +
*Resyncing can take a significant amount of time*, depending on the age of your wallet and the number of transactions it contains.
 +
*It is normal for your computer to experience '''high CPU usage''' during the resync process.
 +
*Bisq '''may become unresponsive''' while syncing. Please be patient and let the process complete.}}
  
For more information, please refer to [https://docs.bisq.network/backup-recovery.html#resync-spv-chain Bisq Docs]
+
[[File:Resync-spv-file.png|600px|thumb|left|Click the button under Settings > Network Info to resync the SPV file via the UI.]]
  
 +
<div style="clear: both;"></div>
  
==='''Follow these steps to re-sync the SPV file.''' ===
+
=== From the File System ===
 +
Use this method if you cannot access the button within Bisq (e.g., if Bisq fails to start fully).
 +
# Ensure Bisq is completely '''closed'''.
 +
# Navigate to your [[Data_directory|Bisq data directory]].
 +
# Locate and '''delete''' the SPV chain file: `btc_mainnet/wallet/bisq.spvchain`
 +
# Start Bisq and wait for it to fully load (it will begin the resync process).
 +
# '''Crucially, close Bisq completely and restart it a second time.''' Bisq will ''not'' prompt you for this second restart when using the manual method, but it is required for the wallet state to initialize correctly after the sync.
  
====1. Open the Bisq application and click on the '''Settings''' tab====
+
{{Admonition_Warn|'''Sync Time & Performance:'''
 +
*As with the interface method, resyncing manually can take a '''significant amount of time''', depending on wallet age and transaction count.
 +
*Expect '''high CPU usage''' and potential Bisq '''unresponsiveness''' during the sync process. Be patient.}}
  
[[File:Market tab.png||1000px]]
+
=== Fix an Incomplete SPV Resync ===
 +
Sometimes, especially on older or larger wallets, the SPV resync might hang or get interrupted. If restarting Bisq causes the resync to start over from 0% instead of resuming, you can try this:
 +
# Ensure Bisq is completely '''closed'''.
 +
# Navigate to the root folder of your [[Data_directory#Default_locations|Bisq data directory]].
 +
# Locate and '''delete''' the file named `resyncSpv`. (This file typically only exists if a previous resync was interrupted).
 +
# '''Restart Bisq'''.
 +
It should now attempt to resume the SPV sync from where it previously left off.
  
====2. Click on '''NETWORK INFO'''====
+
{{Admonition_Note|When resuming an incomplete sync this way, the Bisq UI might load and show balances ''before'' the background sync is fully complete. Your balance may appear incorrect until the process finishes. You can repeat steps 1-4 if the sync gets interrupted again, allowing it to complete in stages.}}
  
[[File:Settings tab.png||1000px]]
+
== Preventing Frequent or Slow Resyncs: Connect to Your Own Node ==
  
====3. Click on '''DELETE SPV FILE AND RESYNC'''====
+
If you find that Bisq frequently requires SPV file resyncs, or if the process consistently takes an extremely long time (especially with an older or high-transaction wallet), the most robust solution is to connect Bisq to your own Bitcoin full node.
  
[[File:Network info.png||1000px]]
+
When connected to your local node, Bisq gets blockchain information directly and reliably, bypassing the need for the SPV synchronization process over the Tor network. This typically results in faster startups and eliminates most common sync-related issues and errors.
  
''You may now restart the application - Re-syncs may take a while depending on the age of your wallet and number of transactions.''
+
For details on setting up a node and configuring Bisq to use it, please see:
 +
* [[Installing your own Bitcoin node]]
 +
* [[Connecting to your own Bitcoin node]]
  
''CPU usage may be high and the Bisq application may not respond, this is normal, be patient and allow the re-sync to finish.''
+
While running a full node requires more resources (disk space, bandwidth), it offers the best performance, privacy, and stability when using Bisq.
  
-----
+
[[Category:Use Cases]]
'''Note: If you are unable to access Bisq, you can manually delete the SPV file from the Bisq directory ---> btc_mainnet ---> wallet ---> bisq.spvchain. You will then be required to manually restart Bisq twice to complete the resync.'''
+
[[Category:Troubleshooting]]

Latest revision as of 13:46, 18 April 2025

Resyncing the SPV file (Simplified Payment Verification file, `bisq.spvchain`) can often solve wallet issues within Bisq, such as an incorrect balance showing, missing transactions, or other synchronization problems.

How to Resync the SPV File

It is generally best to initiate an SPV file resync using the button within the Bisq application interface. However, if Bisq cannot start properly, you may need to initiate it manually via the file system.

From the Bisq Interface

This is the recommended method if Bisq is operational.

  1. Go to `Settings` > `Network Info`.
  2. Click the `Delete SPV File and Resync` button.
  3. Bisq will prompt you to restart the application twice. Follow the prompts carefully.
Warn
Sync Time & Performance:
  • Resyncing can take a significant amount of time*, depending on the age of your wallet and the number of transactions it contains.
  • It is normal for your computer to experience high CPU usage during the resync process.
  • Bisq may become unresponsive while syncing. Please be patient and let the process complete.
Click the button under Settings > Network Info to resync the SPV file via the UI.

From the File System

Use this method if you cannot access the button within Bisq (e.g., if Bisq fails to start fully).

  1. Ensure Bisq is completely closed.
  2. Navigate to your Bisq data directory.
  3. Locate and delete the SPV chain file: `btc_mainnet/wallet/bisq.spvchain`
  4. Start Bisq and wait for it to fully load (it will begin the resync process).
  5. Crucially, close Bisq completely and restart it a second time. Bisq will not prompt you for this second restart when using the manual method, but it is required for the wallet state to initialize correctly after the sync.
Warn
Sync Time & Performance:
  • As with the interface method, resyncing manually can take a significant amount of time, depending on wallet age and transaction count.
  • Expect high CPU usage and potential Bisq unresponsiveness during the sync process. Be patient.

Fix an Incomplete SPV Resync

Sometimes, especially on older or larger wallets, the SPV resync might hang or get interrupted. If restarting Bisq causes the resync to start over from 0% instead of resuming, you can try this:

  1. Ensure Bisq is completely closed.
  2. Navigate to the root folder of your Bisq data directory.
  3. Locate and delete the file named `resyncSpv`. (This file typically only exists if a previous resync was interrupted).
  4. Restart Bisq.

It should now attempt to resume the SPV sync from where it previously left off.

Note
When resuming an incomplete sync this way, the Bisq UI might load and show balances before the background sync is fully complete. Your balance may appear incorrect until the process finishes. You can repeat steps 1-4 if the sync gets interrupted again, allowing it to complete in stages.

Preventing Frequent or Slow Resyncs: Connect to Your Own Node

If you find that Bisq frequently requires SPV file resyncs, or if the process consistently takes an extremely long time (especially with an older or high-transaction wallet), the most robust solution is to connect Bisq to your own Bitcoin full node.

When connected to your local node, Bisq gets blockchain information directly and reliably, bypassing the need for the SPV synchronization process over the Tor network. This typically results in faster startups and eliminates most common sync-related issues and errors.

For details on setting up a node and configuring Bisq to use it, please see:

While running a full node requires more resources (disk space, bandwidth), it offers the best performance, privacy, and stability when using Bisq.