This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Commit 633f061
authored
slashing: add duplicate block proof verification (solana-labs#7418)
* slashing: add duplicate block proof verification
* pr feedback: use local record dep
* pr feedback: update to v2.1 crates
* pr feedback: rename errors for consistency
* pr feedback: do not log pubkey
* pass along workspace lints
* pr feedback: use zerocopy for instruction data
* add one epoch statue of limitations
* pr feedback: zerocopy from proof account to proof data struct
* Fix `proof_account_length` for the new size of a proof account
* pr feedback: revert Cargo.lock
* pr feedback: remove unecessary allow(dead_code)
* pr feedback: use SLOT - 1 and constants in test code
* pr feedback: return error if proof buffer is too small for shred1_length
* pr feedback: remove lifetime on shred reference in get_payload
* pr feedback: use rwlock in test rather than unsafe const modification
* pr feedback: use epoch schedule sysvar instead of hardcoding length
* Add Cargo.lock just for slashing crate1 parent dcfc02b commit 633f061
File tree
14 files changed
+2409
-0
lines changed- slashing
- program
- src
- tests
14 files changed
+2409
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments