-
Notifications
You must be signed in to change notification settings - Fork 56
feat(platform-wallet): rebuild tracked asset locks after restore; honest scan-derived shielded history #4342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6557d9b
84b7f89
716165b
03b8613
a6cfb13
9df80e3
3f28a74
0a2031a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,7 @@ pub(crate) const ASSET_LOCK_STATUS_LABELS: &[&str] = &[ | |
| "is_locked", | ||
| "chain_locked", | ||
| "consumed", | ||
| "recovered_from_chain", | ||
|
coderabbitai[bot] marked this conversation as resolved.
Comment on lines
97
to
+100
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Blocking: Append a migration instead of changing V001's generated CHECK constraint
source: ['codex']
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in a6cfb13: V001 is frozen back to its original five-label CHECK (byte-identical generated SQL, so existing databases' Refinery checksums verify), and the domain widens via an appended |
||
| ]; | ||
|
|
||
| fn status_str(s: &AssetLockStatus) -> &'static str { | ||
|
|
@@ -94,6 +95,7 @@ fn status_str(s: &AssetLockStatus) -> &'static str { | |
| AssetLockStatus::InstantSendLocked => "is_locked", | ||
| AssetLockStatus::ChainLocked => "chain_locked", | ||
| AssetLockStatus::Consumed => "consumed", | ||
| AssetLockStatus::RecoveredFromChain => "recovered_from_chain", | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -198,14 +200,16 @@ mod tests { | |
| AssetLockStatus::InstantSendLocked, | ||
| AssetLockStatus::ChainLocked, | ||
| AssetLockStatus::Consumed, | ||
| AssetLockStatus::RecoveredFromChain, | ||
| ]; | ||
| for v in &variants { | ||
| match v { | ||
| AssetLockStatus::Built | ||
| | AssetLockStatus::Broadcast | ||
| | AssetLockStatus::InstantSendLocked | ||
| | AssetLockStatus::ChainLocked | ||
| | AssetLockStatus::Consumed => {} | ||
| | AssetLockStatus::Consumed | ||
| | AssetLockStatus::RecoveredFromChain => {} | ||
| } | ||
| } | ||
| variants | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.