Repository navigation
Conversation
…wner migration The backup fingerprint includes a volume's creation time, so a volume made again reads as new state. The owner migration makes every earner volume again with the same data, and every confirmed Mysterium or ProxyBase wallet backup turned to "changed" on the Payouts page. The migration now keeps the replaced volume's creation time in a label on the new one, and the fingerprint reads it.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #643 +/- ##
==========================================
- Coverage 93.97% 93.96% -0.02%
==========================================
Files 74 74
Lines 15678 15684 +6
==========================================
+ Hits 14733 14737 +4
- Misses 945 947 +2
🚀 New features to boost your workflow:
|
This was referenced Nov 7, 2026
Owner
Author
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The owner migration in 1.73 empties the "backed up" state on the Payouts page. Every Mysterium identity or ProxyBase wallet you had confirmed as backed up shows "changed" afterwards, even though the migration moved the data byte for byte and checked it twice.
The cause is the backup fingerprint (
orchestrator.state_id). It includes the volume's creation time, so that a volume removed and made again counts as new state. The migration removes each earner volume and makes it again with the same name and data. Docker gives the new volume a new creation time, so the fingerprint changes and every confirmation is void.We saw this on a real three-box upgrade to 1.73.1. Before: Mysterium and ProxyBase confirmed on every box. After: five boxes showed "changed". The only one that stayed confirmed held its identity in a host folder, which the migration does not touch.
Fix
owner_migrate.back_uprecords the old volume'sCreatedAt.restoremakes the new volume with acashpilot.state-createdlabel holding that time. If the old volume already had the label, its value is kept.state_iduses that label when a volume has it, and the volume's ownCreatedAtotherwise. Removing a volume and making it again by any other route still voids the confirmation, as before.Desktop needs nothing: it has no socket proxy and no owner migration, and its backup state is its own.
Tests
test_owner_migrate.py::test_a_migrated_volume_keeps_the_backup_fingerprint_it_had: the fingerprint before the migration equals the one after it, even when Docker gives the remade volume a new creation time.test_backup_confirmations.py::TestStateId::test_a_volume_the_owner_migration_made_again_keeps_it.Both fail on
mainand pass with this change. The owner-migrate and backup-confirmation test files pass in full (107 tests). ruff check and format are clean.