Skip to content

Commit

Permalink
add validator slashing single test
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Nov 13, 2024
1 parent 69f31a2 commit f257f6b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions playbooks/dev/validator-slashing-single.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
id: validator-slashing-single
name: "Validator Slashing Single"
timeout: 1h
config:
validatorMnemonic: "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete"
validatorIndex: 0
validatorCount: 1
tasks:
- name: check_clients_are_healthy
title: "Check if at least one client is ready"
timeout: 5m
config:
minClientCount: 1
- name: check_consensus_slot_range
title: "Wait for epoch >= 4"
timeout: 1h # 4 epochs = ~0.5h
config:
minEpochNumber: 4

- name: run_task_background
title: "Generate & send proposer slashing"
config:
onBackgroundComplete: "fail"
backgroundTask:
name: generate_slashings
title: "Generate 1 proposer slashing per slot"
config:
slashingType: "proposer"
limitPerSlot: 1
configVars:
mnemonic: "validatorMnemonic"
startIndex: "validatorIndex"
limitTotal: "validatorCount"
indexCount: "validatorCount"

foregroundTask:
name: check_consensus_block_proposals
title: "Wait for block proposal with proposer slashings"
config:
minProposerSlashingCount: 1

0 comments on commit f257f6b

Please sign in to comment.