Commit 0d7b434
authored
Add P23 data corruption verification tool. (#4969)
# Description
Add P23 data corruption verification tool.
This allows specifying an external CSV table that contains the expected
p23 Hot Archive corruption data. Then during catchup that covers the
whole range of p23 and the upgrade to p24 the file is used to verify
that:
- Only the entries from the table are ever incorrectly archived, and
that their correct and archived states match those in the table
- Every entry from the table has indeed been incorrectly archived
- The entries that have been marked as restored in the table were indeed
restored with the expected corrupted state
- During the protocol 24 upgrade only the entries from the table that
have never been restored have been updated, and that the update has
brought them back to the correct state
# Checklist
- [ ] Reviewed the
[contributing](https://github.com/stellar/stellar-core/blob/master/CONTRIBUTING.md#submitting-changes)
document
- [ ] Rebased on top of master (no merge commits)
- [ ] Ran `clang-format` v8.0.0 (via `make format` or the Visual Studio
extension)
- [ ] Compiles
- [ ] Ran all tests
- [ ] If change impacts performance, include supporting evidence per the
[performance
document](https://github.com/stellar/stellar-core/blob/master/performance-eval/performance-eval.md)File tree
12 files changed
+569
-13
lines changed- src
- ledger
- main
- transactions
12 files changed
+569
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
2790 | 2799 | | |
2791 | 2800 | | |
2792 | 2801 | | |
| |||
2803 | 2812 | | |
2804 | 2813 | | |
2805 | 2814 | | |
2806 | | - | |
2807 | | - | |
2808 | | - | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
2809 | 2818 | | |
2810 | 2819 | | |
2811 | 2820 | | |
| |||
0 commit comments