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

Implement a simple stateless observation executable #1158

Merged
merged 55 commits into from
Nov 13, 2023

Commits on Nov 8, 2023

  1. Draft a ChainObserverSpec

    This asserts the initialization of a Hydra head is also seen by the (not
    yet existing) hydra-chain-observer executable
    ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    8e7e7c8 View commit details
    Browse the repository at this point in the history
  2. hydra-chain-observer package

    locallycompact authored and ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    24ec5a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    97fba55 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e662e41 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    077ea21 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7e0927d View commit details
    Browse the repository at this point in the history
  7. WIP

    locallycompact authored and ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    8ff1b6f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    dd91e57 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e6e9224 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7a67537 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    de23658 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a4148d0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    32ae09a View commit details
    Browse the repository at this point in the history
  14. WIP

    locallycompact authored and ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    4360769 View commit details
    Browse the repository at this point in the history
  15. Check we can observe commit tx

    locallycompact authored and ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    cb96175 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    4cafc63 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9c905f4 View commit details
    Browse the repository at this point in the history
  18. Add note about observing collect tx without looking at inputs

    We might want to implement that strategy as an observeRawCollectTx
    first and see whether that aligns with the "full" observation.
    ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    5c6307a View commit details
    Browse the repository at this point in the history
  19. Missing deriving strategies

    abailly-iohk authored and ch1bo committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    0b918b7 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    41230bf View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    d3490dd View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5b5fea0 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    37fd46f View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    bc050ba View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4c95237 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    a679fd6 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    79e8b4a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    dae3a6e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    e9c2df0 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    04e4a17 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    8e558e8 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    a1392b8 View commit details
    Browse the repository at this point in the history
  33. Formatting

    abailly-iohk committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    d0096b7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    832fcec View commit details
    Browse the repository at this point in the history
  35. clean up observeTx

    locallycompact committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    b72cc93 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Add some FIXME notes to observeCommitTx before refactoring it

    We plan to use the observeCommitTx also from the chain observer. To make
    that happen we need to remove stateful information like the known
    initials of a head.
    
    However, those are (in a contrived way) currently our only way of
    ensuring that this transaction is a proper Hydra Head transaction.
    
    The FIXME describes alternatives how to achieve this via keeping the
    seed in the datum or providing the full resolved inputs of a
    transaction (including the committed UTxO).
    ch1bo committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    d7b5231 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3fe097 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2023

  1. Create a test about observing commit transactions

    This ensures we do not observe transactions which look like commit
    transactions on their outputs, but do not spend from initial script.
    locallycompact authored and ch1bo committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    2a3ff5d View commit details
    Browse the repository at this point in the history
  2. Check commits are spending from vInitial in observeCommitTx

    This ensures that the commit tx is part of the Head protocol (because
    the validators must have ran).
    ch1bo committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    8a00319 View commit details
    Browse the repository at this point in the history
  3. Relativize FIXMEs

    ch1bo committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    91d48d8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    280c3d2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19aa8fa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    53f8d46 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c2dacb3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4dbfa12 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Fix compilation errors

    abailly-iohk authored and ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    a31dcbb View commit details
    Browse the repository at this point in the history
  2. Refactor EndToEndLog and create a smaller HydraNodeLog type

    This avoids passing the "too big" type into the HydraClient
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    4002783 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    49eeb1a View commit details
    Browse the repository at this point in the history
  4. Remove hydra-chain-observer/CHANGELOG

    This package is released with all other hydra-* packages and shares a changelog
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    5e2ddbd View commit details
    Browse the repository at this point in the history
  5. Fix formatting

    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    f30ea19 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    22a9456 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a2a88e7 View commit details
    Browse the repository at this point in the history
  8. Add explicit guard in observeCommit

    This makes it clear that the hydra-node still only "cares" about commit
    transactions about the head it knows in the chain layer.
    ch1bo committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    c586f04 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b384b70 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    61ead85 View commit details
    Browse the repository at this point in the history