Skip to content

Commit c86dce0

Browse files
fix: use the correct attributes to debug chronos pending futures (#7760)
1 parent 5649296 commit c86dce0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

beacon_chain/rpc/rest_nimbus_api.nim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,18 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) =
259259
var res: seq[RestFutureInfo]
260260
for item in pendingFutures():
261261
let loc = item.location[LocCreateIndex][]
262-
let futureId = Base10.toString(item.id)
262+
let futureId = Base10.toString(item.internalId)
263263
let childId =
264-
if isNil(item.child): ""
265-
else: Base10.toString(item.child.id)
264+
if isNil(item.internalChild): ""
265+
else: Base10.toString(item.internalChild.internalId)
266266
res.add(
267267
RestFutureInfo(
268268
id: futureId,
269269
child_id: childId,
270270
procname: $loc.procedure,
271271
filename: $loc.file,
272272
line: loc.line,
273-
state: $item.state
273+
state: $item.internalState
274274
)
275275
)
276276
RestApiResponse.jsonResponse(res)

0 commit comments

Comments
 (0)