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

Pass continuation for handling ledger events #402

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Commits on Sep 20, 2023

  1. Add 'AuxLedgerEvent' hook to ledgerDbSwitch

      Now, needs to be threaded down to 'addBlockSync' and up back to
      'runWith' to be usable from the node.
    
      The goal for now is simply to print ledger events on the console on a
      running node.
    KtorZ committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    eb18a35 View commit details
    Browse the repository at this point in the history
  2. Finish threading 'handleLedgerEvent' callback through the consensus s…

    …tack
    
      - I've skipped 'chainSelectionForFutureBlocks' and 'addBlockAsync' which seem not relevant to the use case of streaming events down to clients. Those functions are used in anticipation when preparing blocks to apply from the mempool but should likely not lead to any event notification.
      - Similarly, the handler is set to 'const $ pure ()' on initialization functions which are simply replaying the database.
    KtorZ committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    852ae3d View commit details
    Browse the repository at this point in the history
  3. Bump CHaP and ouroboros-network in ouroboros-consensus-diffusion

      So that we can use the newest 'local' ouroboros-consensus-diffusion for building the node, at the same time as our new patch consensus.
    KtorZ committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    971c1c9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1026b39 View commit details
    Browse the repository at this point in the history
  5. Fix failing tests

    abailly committed Sep 20, 2023
    Configuration menu
    Copy the full SHA
    57f56e9 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Wrap event handler as a newtype

    This is to prepare adding arguments to index events by block hash/slot number
    abailly committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    34d185e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68260b6 View commit details
    Browse the repository at this point in the history
  3. Fix more tests

    abailly committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    26cfb96 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. WIP: does not compile

    koslambrou committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    808b7f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e39f524 View commit details
    Browse the repository at this point in the history
  3. Changed LedgerEventHandler to emit a list of AuxLedgerEvents so that …

    …clients can now if a rollback occurred, or if they missed an event.
    koslambrou committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    c478377 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8c139ed View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2023

  1. Fix broken ouroboros-consensus-diffusion with missing 'blk' type para…

    …meter for LedgerEventHandler
    koslambrou committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    2fe143f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2023

  1. Incorporate design document

    abailly committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    1ffb2fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab42867 View commit details
    Browse the repository at this point in the history