forked from WalletWasabi/WalletWasabi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make it easier to migrate filters for non-devs operators (WalletWasab…
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Filters Migration | ||
|
||
Starting with Wasabi v2.2.0.0, the backend now utilizes SQLite to store and retrieve compact filters. As a result, operators need to migrate their old plain text filters to the new SQLite format. | ||
|
||
## Migration Guide | ||
|
||
### Using Nix | ||
|
||
If you're deploying with `Nix`, migrating is straightforward. Simply run the following command on your backend server: | ||
|
||
```bash | ||
$ nix run github:WalletWasabi/WalletWasabi#migrateFilters | ||
|
||
Database already exists. Skipping creation. | ||
..................................... | ||
Completed. Total processed: 371888, Total inserted: 371888 | ||
Max Block Height in DB: 853711 | ||
``` | ||
The migration tool will automatically process your filters and insert them into the new SQLite database. | ||
The old filters will still be there untouched. We recommend to keep them for a while just in case a rollback | ||
to a previous version is needed. | ||
|
||
|
||
## Using dotnet | ||
|
||
For those using dotnet, follow these steps: | ||
|
||
* Clone the repository | ||
* Navigate to the migration directory: | ||
``` | ||
$ cd <your wasabi repo dir>/Contrib/Migration | ||
``` | ||
* Run the migration script: | ||
``` | ||
dotnet fsi migrateBackendFilters.fsx | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters