Skip to content

Drop the unused overrides table from the burnchain DB #7340

Description

@francesco-stacks

The overrides table in the burnchain DB (stackslib/src/burnchains/db.rs:285) looks like a band-aid from the past. Its schema comment describes an mechanism to override a reward cycle's affirmation map (e.g. to avoid a deep reorg from a hidden anchor block), but it appears to be dead:

  • There is no reader outside tests.
  • Only writer is test-only - #[cfg(test)] BurnchainDB::test_insert_override_row (db.rs:1043).

This came out in #7317 (comment), where rather than copy its always-empty rows we reclassified it as a schema-only table in the snapshot copy. If the table is deprecated, we should drop it instead (and also remove it from the snapshot)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Status: 🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions