zebra icon indicating copy to clipboard operation
zebra copied to clipboard

Compare config file and database after restart, act accordingly

Open oxarbitrage opened this issue 1 year ago • 2 comments

Currently we can have differences between the config and the database in regards to keys. This was part of https://github.com/ZcashFoundation/zebra/issues/8022 but it is moved to its own ticket.

  • [ ] After the new keys are inserted, compare the keys in the database and in the config:
    • If keys are deleted from the config, don't start any scan for them, keep results if any.
    • If key is in both places, check the last scanned height from the database and scan up to tip from that height only.
    • (It is impossible for keys to only be in the config, because we waited for their birthdays to be inserted.)

Move was done because deleting things from the database can be complicated.

oxarbitrage avatar Dec 13 '23 19:12 oxarbitrage

Just confirming that this issue is out of scope for the MVP?

mpguerra avatar Dec 14 '23 08:12 mpguerra

Just confirming that this issue is out of scope for the MVP?

Correct.

oxarbitrage avatar Dec 14 '23 11:12 oxarbitrage

@oxarbitrage do we still need to do this now that we're separating the scanner out?

mpguerra avatar Jul 05 '24 10:07 mpguerra