Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 958 Bytes

invalid-proposals.md

File metadata and controls

11 lines (9 loc) · 958 Bytes

Challenging Invalid Output Proposals

The dispute game factory deployed to Goerli reads from the permissioned L2 Output Oracle contract. This restricts games to challenging valid output proposals and an honest challenger should win every game. To test creating games that challenge an invalid output proposal, a custom chain is required. The simplest way to do this is using the end-to-end test utilities in op-e2e.

A simple starting point has been provided in the TestCannonProposedOutputRootInvalid test case in faultproof_test.go. This is a table test that takes the output root to propose, plus functions for move and step to counter the honest claims. The test asserts that the defender always wins and thus the output root is found to be invalid.