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

Archive node feature #2338

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Archive node feature #2338

wants to merge 5 commits into from

Commits on Sep 20, 2024

  1. Add archival capabilities (VM Events)

    - Add archive feature flag to rusk (depends on node)
    - Add ArchivalData enum to node-data
    - Add VM event MPSC channel for archival to Rusk
    - Add with_archivist to RuskNodeBuilder
    - Split up build and run for RuskNodeBuilder
    - Add ArchivistSrv to service list
    - Add Archivist trait to node
    - Add archive_sender to Rusk & send VM events in accept_transactions
    - Add SQLiteArchive struct to Node
    - Add optional sqlx, serde_json dep & archive feature to node
    - Add migration file with archive db schema
    - Add an .env file to get sqlx-cli & macros to work
    - Add SQLiteArchive functionalities & tests
    - Use hash type alias for [u8; 32]
    - Add serialization support & tests to node_data ContractEvent
    - Update gitignore (.vscode)
    - fmt & todo comments
    - Update README with archive run info
    Neotamandua committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    303bd88 View commit details
    Browse the repository at this point in the history
  2. Fix rebase changes and finalize

    - Fix shutdown problem & get rid of Mutex
    - Move ContractTxEvent to node-data
    - Combine ContractTxEvent with ContractEvent
    - Skip origin serialization if none
    - Let sqlx queries compile without live db connection
    - Update README
    Neotamandua committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    749b9dc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c2a43d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e72eb08 View commit details
    Browse the repository at this point in the history
  5. Add finality info to archive

    - Add suggestions
    - Add finalized bool column to archive db
    - Add block event for block deletion
    - Add FinalizedBlock & DeletedBlock to ArchivalData
    - Change RuskNodeBuilder to also have archive_sender
    - Adapt ChainEventStreamer to forward relevant node events to archive
    - Add archive functionality to delete blocks & mark blocks as finalized
    - Add tests
    Neotamandua committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    3b9ad43 View commit details
    Browse the repository at this point in the history