-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: Full transaction in SnapshotConfirmed (#1685)
Updates `SnapshotConfirmed` server output to contain full transactions (instead of only transaction ids). This also updates TxValid to only include the transaction id, such that transactions are only submitted once per client still. Hence, this will not change the overall bandwidth requirement on websocket clients, but will make their implementation significantly easier. Before, if clients wanted to act on transactions this was a lot easier to do upon seing `TxValid`. However, this was only confirming local ledger application and not consensus / enforcability of this transaction onto the L1. The new API suggests to do the right thing by making it straight-forward to act upon seeing a transaction in a `SnapshotConfirmed`. **TBD:** Changed `ServerOutput` field name `snapshotNumber` -> `number` to be consistent with `version` (and the internal Haskell data type names). Does anyone like `version` -> `snapshotVersion` better as an alternative? **TBD:** The field holding the transaction id in `TxValid` is called `transactionId` now. The transaction (envelop) itself though contains `txId`. This feels a bit inconsistent, which of the two should be renamed? This will also make #1612 easier (is mentioned as a sub-task there). --- * [x] CHANGELOG updated * [x] Documentation updated * [x] Haddocks updated * [x] No new TODOs introduced
- Loading branch information
Showing
51 changed files
with
28,966 additions
and
46,286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19,180 changes: 0 additions & 19,180 deletions
19,180
hydra-node/golden/ReasonablySized (ServerOutput (Tx ConwayEra)).json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.