-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup incremental decommit - Part 2 (#1513)
Second part of promised cleanup on #1344. This holds not as crucial changes as the other and more refactorings than fixes. * This should resolve most of the comments I had about #1344 and this also does the "clearing" of $\textcolor{red}{\\red}$ areas in the specfication. * Validate a client decommit request against the `localUTxO`. We can (and should) check against the local ledger state in both cases as it's our local node's view of what is valid and what it would snapshot next anyways. * Make AckSn processing emit a PartySignedSnapshot This matches with the Σ̂[j] ← σj assignment from the pseudo-code. This does not change the semantics, as the SnapshotConfirmed state changed event includes the full multi-signature anyways. * Only request snapshot on ReqDec if no snapshot in flight * Added a missing $\setminus outputs(tx_\omega)$ to the spec. * Resolved "Spec Gap" comments in `HeadLogic` * Refactored `CloseTx`, `ContestTx` and `DecrementTx` to take `ConfirmedSnapshot`s and remove redundant `closeUTxOToDecommit` from `CloseTx`. * Simplify/shorten/reword incremental decommit how-to * Removed various unused things * Enhance / properly use `TxTraceSpec` to detect problems in contest transaction creation by modeling versions in `ModelSnapshot`. --- * [x] CHANGELOG updated * [x] Documentation updated * [x] Haddocks updated * [ ] No new TODOs introduced or explained herafter
- Loading branch information
Showing
44 changed files
with
37,170 additions
and
27,716 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
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
Oops, something went wrong.