Commit 7bd834a
committed
refactor: use enum for epoch state action type
Refactored dbsync_utils.check_epoch_state to use ActionTypes enum instead of
string literals for action type. Updated all usages in committee and
constitution tests. Added ActionTypes enum to dbsync_utils for clarity and
type safety. Improved error handling for unsupported action types.1 parent e40fb0f commit 7bd834a
File tree
3 files changed
+24
-12
lines changed- cardano_node_tests
- tests/tests_conway
- utils
3 files changed
+24
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
1321 | 1323 | | |
1322 | 1324 | | |
1323 | | - | |
| 1325 | + | |
1324 | 1326 | | |
1325 | 1327 | | |
1326 | 1328 | | |
| |||
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
1593 | 1599 | | |
1594 | 1600 | | |
1595 | 1601 | | |
1596 | | - | |
| 1602 | + | |
1597 | 1603 | | |
1598 | 1604 | | |
1599 | 1605 | | |
| |||
1604 | 1610 | | |
1605 | 1611 | | |
1606 | 1612 | | |
1607 | | - | |
| 1613 | + | |
1608 | 1614 | | |
1609 | 1615 | | |
1610 | 1616 | | |
1611 | 1617 | | |
1612 | 1618 | | |
1613 | 1619 | | |
1614 | 1620 | | |
1615 | | - | |
1616 | | - | |
| 1621 | + | |
1617 | 1622 | | |
1618 | 1623 | | |
1619 | 1624 | | |
1620 | 1625 | | |
1621 | 1626 | | |
1622 | 1627 | | |
1623 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
0 commit comments