interlay / interbtc-clients

interBTC Clients | Vault, Oracle, Faucet
Apache License 2.0
52 stars 30 forks source link

fix: import keys into shared-v2 wallet #536

Open gregdhill opened 1 year ago

gregdhill commented 1 year ago

Current logic flow now:

  1. Fetch all currency specific Vaults
    1. Vault imports derivation key from master to shared and shared-v2
    2. Vault imports all keys from currency specific wallet to shared and shared-v2
    3. Sweep funds from currency specific wallet to shared
  2. Add issue keys to shared wallet
    1. Rescan using electrs if using pruned node
    2. Rescan using bitcoind remaining heights
  3. Add issue keys to shared-v2 wallet
    1. Rescan using electrs if using pruned node (only after last sweep - if it exists)
    2. Rescan using bitcoind remaining heights