Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H haf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hivehive
  • haf
  • Merge requests
  • !245

Draft: Consensus state provider

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Maciej Krzeminski requested to merge mkrzeminski/haf_consensus_state_provider into develop Mar 13, 2023
  • Overview 0
  • Commits 195
  • Pipelines 50
  • Changes 17

Second part of issue: #94 New state providers specific to account metadata and current account balances

The corresponding merge request in hive: hive!879

For now it is the attempt to do it:

  1. The whole database_api plugin with dependesnces is linked into haf shared library .so
  2. sharedmemory.bin is created for every haf application context in PG_DATA.
  3. Any haf application using the consensus state provider can replay it forward any number of blocks
  4. Each block is read from haf block api as json and then consumed by the hive evaluator apply_block method.
  5. 5M of replay takes 3 hours
  6. No validation happens during the replay
Edited Mar 13, 2023 by Maciej Krzeminski
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: mkrzeminski/haf_consensus_state_provider