statechannels / dispute-game

A prototype of the dispute game in typescript and solidity.
MIT License
9 stars 0 forks source link

Introduce ChallangerAgent and DisputeGame #44

Closed kerzhner closed 3 years ago

kerzhner commented 3 years ago

Follows up on https://github.com/statechannels/dispute-game/pull/43. Fixes https://github.com/statechannels/dispute-game/issues/34.

This refactor includes:

andrewgordstewart commented 3 years ago

A challenger agent monitors rollup roots posted on chain. If the challenger agent detects an invalid root, the challenger agent initiates a challenge (currently implemented as the constructor).

This might be out of scope of a ChallengerAgent. A ChallengerAgent might be used only during a challenge, not to determine when to launch a challenge.

kerzhner commented 3 years ago

This might be out of scope of a ChallengerAgent. A ChallengerAgent might be used only during a challenge, not to determine when to launch a challenge.

I agree with that. Seems like there should be another component that monitors for when to launch a challenge.