-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(MSFDG): adapt AttackV2 and StepV2 functions in op-challenger2 #94
Conversation
…p-challenger2-attackv2
…allenger2-attackv2
…to bill/op-challenger2-attackv2
…to bill/op-challenger2-attackv2
@@ -208,7 +202,7 @@ func detectFailedStep(game types.Game, action types.Action, correctTrace types.T | |||
if err != nil { | |||
return fmt.Errorf("failed to get correct trace at position %v: %w", poststateClaim.Position, err) | |||
} | |||
validStep := correctValue == poststateClaim.Value | |||
validStep := correctValue == (*poststateClaim.SubValues)[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If poststateClaim
is attacked by the non-0 branch, it might not be (*poststateClaim.SubValues)[0]
|
||
preState, proofData, oracleData, err := s.trace.GetStepData(ctx, game, claim, position) | ||
if branch == game.MaxAttackBranch()-1 { | ||
// If we are at the max attack branch, we need to step on the next branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we agree subValues in [0, maxAttackBranch-1], the max attack branch should be stepped.
might be more clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find this code. Has it been modified?
Deprecated in #105 |
Description
Adapt AttackV2 and StepV2 functions in op-challenger2
Tests