Commit 3f50234
committed
Fix and re-instate Babbage
`allPoolStakeCert` needed some adjustments after the `UMap` purge in
`cardano-ledger` and had to make sure that we don't re-register already registered staking credentials.
Also, because validations were turned off apparently, `FailedToValidateSlot` was not triggered
but rather we ended up in an invalid state (the associated delegations were dropped in the account state),
thus resulting in a test failure.
With validation, attempting to re-register already registered staking credentials would trigger the
`StakeKeyAlreadyRegisteredDELEG` predicate failure as per the `DELEG` rule.simpleRewards test1 parent aa5d983 commit 3f50234
File tree
2 files changed
+8
-10
lines changed- cardano-chain-gen
- src/Cardano/Mock/Forging/Tx
- test/Test/Cardano/Db/Mock/Unit
2 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
202 | 198 | | |
| 199 | + | |
| 200 | + | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments