Skip to content
  1. Feb 17, 2023
    • Adrian Catangiu's avatar
      BEEFY: implement equivocations detection, reporting and slashing (#13121) · c21f292a
      Adrian Catangiu authored
      
      
      * client/beefy: simplify self_vote logic
      
      * client/beefy: migrate to new state version
      
      * client/beefy: detect equivocated votes
      
      * fix typos
      
      * sp-beefy: add equivocation primitives
      
      * client/beefy: refactor vote processing
      
      * fix version migration for new rounds struct
      
      * client/beefy: track equivocations and create proofs
      
      * client/beefy: adjust tests for new voting logic
      
      * sp-beefy: fix commitment ordering and equality
      
      * client/beefy: simplify handle_vote() a bit
      
      * client/beefy: add simple equivocation test
      
      * client/beefy: submit equivocation proof - WIP
      
      * frame/beefy: add equivocation report runtime api - part 1
      
      * frame/beefy: report equivocation logic - part 2
      
      * frame/beefy: add pluggable Equivocation handler - part 3
      
      * frame/beefy: impl ValidateUnsigned for equivocations reporting
      
      * client/beefy: submit report equivocation unsigned extrinsic
      
      * primitives/beefy: fix tests
      
      * frame/beefy: add default weights
      
      * frame/beefy: fix tests
      
      * client/beefy: fix tests
      
      * frame/beefy-mmr: fix tests
      
      * frame/beefy: cross-check session index with equivocation report
      
      * sp-beefy: make test Keyring useable in pallet
      
      * frame/beefy: add basic equivocation test
      
      * frame/beefy: test verify equivocation results in slashing
      
      * frame/beefy: test report_equivocation_old_set
      
      * frame/beefy: add more equivocation tests
      
      * sp-beefy: fix docs
      
      * beefy: simplify equivocations and fix tests
      
      * client/beefy: address review comments
      
      * frame/beefy: add ValidateUnsigned to test/mock runtime
      
      * client/beefy: fixes after merge master
      
      * fix missed merge damage
      
      * client/beefy: add test for reporting equivocations
      
      Also validated there's no unexpected equivocations reported in the
      other tests.
      
      Signed-off-by: default avataracatangiu <[email protected]>
      
      * sp-beefy: move test utils to their own file
      
      * client/beefy: add negative test for equivocation reports
      
      * sp-beefy: move back MmrRootProvider - used in polkadot-service
      
      * impl review suggestions
      
      * client/beefy: add equivocation metrics
      
      ---------
      
      Signed-off-by: default avataracatangiu <[email protected]>
      Co-authored-by: parity-processbot <>
      c21f292a
  2. Feb 16, 2023
  3. Feb 15, 2023
  4. Feb 14, 2023
  5. Feb 13, 2023
  6. Feb 12, 2023
  7. Feb 11, 2023
  8. Feb 08, 2023
  9. Feb 07, 2023
  10. Feb 06, 2023
  11. Feb 03, 2023
  12. Feb 02, 2023
  13. Jan 29, 2023
  14. Jan 28, 2023
  15. Jan 27, 2023
  16. Jan 26, 2023
  17. Jan 25, 2023
  18. Jan 24, 2023
  19. Jan 23, 2023
  20. Jan 21, 2023
    • Bastian Köcher's avatar
      Fix flaky BABE test (#13199) · a8d7cda7
      Bastian Köcher authored
      The `authoring_blocks` test of BABE was calculating the slot based on the timestamp it sometimes
      failed in CI. The problem is that we combine all the notifications and authoring futures in one big
      future. This one big future may first polls one authoring future to build a block. Then it polls all
      notification futures again to import the block. Then some other authoring future is polled and
      builds on the imported block using the same slot and making the import fail. The solution is that we
      just artificially increase the slot to make the test work.
      a8d7cda7