mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
* Add equivocation detection logic; broadcast slashing immediately on equivocation * nit: comments * move equivocation detection to validateBeaconBlockPubSub * include broadcasting logic within the helper function * fix lint * Add unit tests for equivocation detection * remove comment that are not required * Add changelog file * Add descriptive comment for detectAndBroadcastEquivocation * use head block instead of block cache for equivocation detection * add more equivocation unit tests; update a mock to include HeadState error * update the order of the checks * move slashing before state fetch; update Tests * update changelog * use verifyProposerSlashing to verify and reject block; remove verifySlashableBlock; update tests * Update changelog * nit: cleaner error check * nit: clean up * revert code logic; update string check; add a unit test * improve errors; merge tests * Update a unit test * fix lint --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>