Skip to content

Commit 5779a5c

Browse files
committed
Update changelog and mark ADR as accepted
1 parent 6070d07 commit 5779a5c

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,17 @@ changes.
3939
- Add support for `Conway` in `hydra-chain-observer`.
4040

4141
- **BREAKING** Change to the `hydra-node` logs, monitoring and removal of `log-filter` executable:
42-
- We renamed the `Event` data types to `Input` and consequently log items like `BeginEvent` to `BeginInput`.
43-
- In course of this, we also removed the `log-filter` executable as nobody is actively using it and we recommend using other off-the-shelf utilities to manipulate structured JSON logs (`jq` is already quite powerful).
42+
- Renamed the `Event` data types to `Input` and consequently log items like `BeginEvent` to `BeginInput`.
43+
- Changed structure of `LogicOutcome` entries.
44+
- Added node-level log entry when an input was `DroppedFromQueue`.
45+
- In course of this, the `log-filter` executable was removed as nobody is actively using it and other off-the-shelf utilities to manipulate structured JSON logs (`jq` is already quite powerful) are recommended.
4446
- Renamed prometheus metric `hydra_head_events -> hydra_head_inputs`.
4547

48+
- Introduce `EventSource` and `EventSink` interfaces in `hydra-node`:
49+
- These handles can now be used as "extension points" to make the `hydra-node` store and load its state differently or expose `StateEvent`s to other, external services.
50+
- Internal refactoring of persistence mechanism as event source and sink in a backward-compatible way.
51+
- More details can be found in [ADR21](https://hydra.family/head-protocol/adr/21/)
52+
4653
## [0.15.0] - 2024-01-18
4754

4855
- Tested with `cardano-node 8.7.3` and `cardano-cli 8.17.0.0`.

docs/adr/2023-11-07_029-event-source-sink.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ slug: 29
33
title: |
44
29. EventSource & EventSink abstractions
55
authors: [cardenaso11, quantumplation, ch1bo]
6-
tags: [Draft]
6+
tags: [Accepted]
77
---
88

99
## Status
10-
Draft
10+
Accepted
1111

1212
## Context
1313

@@ -42,12 +42,12 @@ Draft
4242
```hs
4343
data HydraNode tx m = HydraNode
4444
{ -- ...
45-
, eventSource :: EventSource (StateChanged tx) m
46-
, eventSinks :: [EventSink (StateChanged tx) m]
45+
, eventSource :: EventSource (StateEvent tx) m
46+
, eventSinks :: [EventSink (StateEvent tx) m]
4747
}
4848
```
4949

50-
* The `hydra-node` will load events and __hydra_te its `HeadState` using `getEvents` of the single `eventSource`.
50+
* The `hydra-node` will load events and `hydrate` its `HeadState` using `getEvents` of the single `eventSource`.
5151

5252
* The `stepHydraNode` main loop does call `putEvent` on all `eventSinks` in sequence. Any failure will make the `hydra-node` process terminate and require a restart.
5353

0 commit comments

Comments
 (0)