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
6f887d51
Unverified
Commit
6f887d51
authored
Jul 23, 2024
by
DenseDenise
Committed by
GitHub
Jul 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-challenger: clarify the output (#11141)
* clarify the out put * Update list_claims.go
parent
efbf441f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
list_claims.go
op-challenger/cmd/list_claims.go
+2
-2
No files found.
op-challenger/cmd/list_claims.go
View file @
6f887d51
...
@@ -116,13 +116,13 @@ func listClaims(ctx context.Context, game contracts.FaultDisputeGameContract, ve
...
@@ -116,13 +116,13 @@ func listClaims(ctx context.Context, game contracts.FaultDisputeGameContract, ve
}
}
now
:=
time
.
Now
()
now
:=
time
.
Now
()
lineFormat
:=
"%3v %-7v %6v %5v %14v "
+
valueFormat
+
" %-42v %12v %-19v %10v %v
\n
"
lineFormat
:=
"%3v %-7v %6v %5v %14v "
+
valueFormat
+
" %-42v %12v %-19v %10v %v
\n
"
info
:=
fmt
.
Sprintf
(
lineFormat
,
"Idx"
,
"Move"
,
"Parent"
,
"Depth"
,
"
Index
"
,
"Value"
,
"Claimant"
,
"Bond (ETH)"
,
"Time"
,
"Clock Used"
,
"Resolution"
)
info
:=
fmt
.
Sprintf
(
lineFormat
,
"Idx"
,
"Move"
,
"Parent"
,
"Depth"
,
"
Trace
"
,
"Value"
,
"Claimant"
,
"Bond (ETH)"
,
"Time"
,
"Clock Used"
,
"Resolution"
)
for
i
,
claim
:=
range
claims
{
for
i
,
claim
:=
range
claims
{
pos
:=
claim
.
Position
pos
:=
claim
.
Position
parent
:=
strconv
.
Itoa
(
claim
.
ParentContractIndex
)
parent
:=
strconv
.
Itoa
(
claim
.
ParentContractIndex
)
var
elapsed
time
.
Duration
// Root claim does not accumulate any time on its team's chess clock
var
elapsed
time
.
Duration
// Root claim does not accumulate any time on its team's chess clock
if
claim
.
IsRoot
()
{
if
claim
.
IsRoot
()
{
parent
=
""
parent
=
"
-
"
}
else
{
}
else
{
parentClaim
,
err
:=
gameState
.
GetParent
(
claim
)
parentClaim
,
err
:=
gameState
.
GetParent
(
claim
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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