Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
e760d1c6
Unverified
Commit
e760d1c6
authored
Jul 21, 2023
by
OptimismBot
Committed by
GitHub
Jul 21, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6402 from ethereum-optimism/refcell/agent-touchup
fix(op-challenger): Small Agent Touchup
parents
1421ce9d
d4ce261a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
agent.go
op-challenger/fault/agent.go
+8
-9
No files found.
op-challenger/fault/agent.go
View file @
e760d1c6
...
...
@@ -55,16 +55,15 @@ func (a *Agent) Act(ctx context.Context) error {
// tryResolve resolves the game if it is in a terminal state
// and returns true if the game resolves successfully.
func
(
a
*
Agent
)
tryResolve
(
ctx
context
.
Context
)
bool
{
if
a
.
responder
.
CanResolve
(
ctx
)
{
a
.
log
.
Info
(
"Resolving game"
)
err
:=
a
.
responder
.
Resolve
(
ctx
)
if
err
!=
nil
{
a
.
log
.
Error
(
"Failed to resolve the game"
,
"err"
,
err
)
return
false
}
return
true
if
!
a
.
responder
.
CanResolve
(
ctx
)
{
return
false
}
a
.
log
.
Info
(
"Resolving game"
)
if
err
:=
a
.
responder
.
Resolve
(
ctx
);
err
!=
nil
{
a
.
log
.
Error
(
"Failed to resolve the game"
,
"err"
,
err
)
return
false
}
return
fals
e
return
tru
e
}
// newGameFromContracts initializes a new game state from the state in the contract
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment