Skip to content

Add ability to read directly from rusty-kaspa RocksDB database #7

@smartgoo

Description

@smartgoo

Add the ability to read directly from rusty-kaspa RocksDB database using a read-only or secondary RocksDB connection.

This is feasible and has been done in various POCs in the past.

The following are rough notes.

Will have to figure out what level to do this at:

  • Wrapper around ConsensusStorage
  • Wrapper around individual stores
  • Raw RocksDB level

Each has it's own pros/cons/challenges and may or may not be feasible. Including but not limited to:

  • Visibility of rusty-kaspa source to external crates
  • Deserialization of stored data using bincode
  • UTXO index store is not part of ConsensusStorage

We'll need to bear in mind the mechanics of read-only and secondary RocksDB connections:

  • Read-only provides point in time data (as of when connection was opened)
  • Secondary provides functionality to catch up with primary
  • Need to ensure this does not corrupt or interfere with node data/performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions