Skip to content
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

Real-time Sync: Track latest address derivation index #579

Open
wants to merge 1 commit into
base: yse-rt-integrate
Choose a base branch
from

Conversation

hydra-yse
Copy link
Collaborator

@hydra-yse hydra-yse commented Nov 24, 2024

Based on #555, #556, #568, #578.

LAST_DERIVATION_INDEX_DATA_ID,
RecordType::LastDerivationIndex,
// insert a mock updated field so that merging with incoming data works as expected
Some(vec!["last-derivation-index".to_string()]),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use LAST_DERIVATION_INDEX_DATA_ID here?

@@ -105,6 +107,7 @@ impl Record {
SyncData::Chain(_) => "chain-swap",
SyncData::Send(_) => "send-swap",
SyncData::Receive(_) => "receive-swap",
SyncData::LastDerivationIndex(_) => "wallet-address",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use derivation-index instead? wallet address doesn't seem right

@@ -115,6 +118,7 @@ impl Record {
RecordType::Chain => "chain-swap",
RecordType::Send => "send-swap",
RecordType::Receive => "receive-swap",
RecordType::LastDerivationIndex => "wallet-address",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants