Commit d524949
committed
[Dijkstra] CIP-159-10: Apply batch-wide direct deposits in LEDGER rule (#1122)
After all sub-rule transitions (`SUBLEDGERS`, `CERTS`, `GOVS`, `UTXOW`),
apply batch-wide direct deposits to the final CertState via
`applyDirectDeposits` and `allDirectDeposits`.
`Ledger.lagda.md`:
+ Update `LEDGER-V` output: compute `certStateFinal` by applying
`allDirectDeposits` to `certState₂`, use `certStateFinal` in the
output `LedgerState` and in `rmOrphanDRepVotes`;
+ `LEDGER-I` unchanged (invalid batches don't apply deposits);
+ Document direct deposit application ordering and phantom asset
prevention rationale.
`Ledger/Properties/Computational.lagda.md`:
+ Update `computeProof` valid branch to compute `certStateFinal` and use
it in the output `LedgerState`.1 parent 3aa30f5 commit d524949
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments