Difference between revisions of "Resyncing SPV file"

From Bisq Wiki
Jump to navigation Jump to search
(Create a simple SPV re-sync walkthrough with pictures)
 
(Update SPV resync button label text & caption.)
 
(67 intermediate revisions by 8 users not shown)
Line 1: Line 1:
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.  
+
'''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.
  
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.
+
__TOC__
  
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.
+
== How to Resync the SPV File ==
  
By deleting it you allow Bisq to re-sync the file with the Bitcoin blockchain and fix any potential errors.  
+
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.
-----
 
'''Follow these steps to re-sync the SPV file.'''
 
-----
 
  
1. Open the Bisq application and click on the '''Settings''' tab
+
=== From the Bisq Interface ===
 +
This is the recommended method if Bisq is operational.
 +
# Go to `Settings` > `Network Info`.
 +
# Click the `RESYNC SPV WALLET` button.
 +
# Bisq will prompt you to restart the application '''twice'''. Follow the prompts carefully.
  
[[File:Market tab.png||1000px]]
+
{{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.}}
  
2. Click on '''NETWORK INFO'''
+
[[File:Resync-spv-file.png|600px|thumb|left|Click the 'RESYNC SPV WALLET' button under Settings > Network Info.]]
  
[[File:Settings tab.png||1000px]]
+
<div style="clear: both;"></div>
  
3. Click on '''DELETE SPV FILE AND RESYNC'''
+
=== 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.
  
[[File:Network info.png||1000px]]
+
{{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.}}
  
''You may now restart the application - Re-syncs may take a while depending on the age of your wallet and number of transactions.''
+
=== 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.
  
''CPU usage may be high and the Bisq application may not respond, this is normal, be patient and allow the re-sync to finish.''
+
{{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.}}
  
-----
+
== Preventing Frequent or Slow Resyncs: Connect to Your Own Node ==
'''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.'''
+
 
 +
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:
 +
* [[Installing your own Bitcoin node]]
 +
* [[Connecting to your own Bitcoin node]]
 +
 
 +
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]]
 +
[[Category:Troubleshooting]]

Latest revision as of 03:28, 23 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 `RESYNC SPV WALLET` 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 'RESYNC SPV WALLET' button under Settings > Network Info.

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.