-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
While implementing the *traceGetContent
endpoints in ultralight
, I discovered that there are a couple of places in the traceResultObject
where what trin
returns doesn't match the current spec but that seem to be required for glados
to support tracing of audits.
targetId
- the spec calls for^0x([1-9a-f][0-9a-f]{0,63}|0$)
buttrin
returns an array of integers (presumably just converting byte array representation of the contentId directly to a JSON array).- @KolbyML confirmed this would be updated so
trin
andglados
would accept the0x
prefixed string version of the contentID.
- @KolbyML confirmed this would be updated so
startedAtMs
- the spec calls for an integer buttrin
returns an object of the form- I'm not certain how the
nanos_since_epoch
is calculated here since it seems to be a rust struct (from looking at the glados errors I was getting when I didn't populate this field in the Ultralight response) but assuming it makes sense to update the spec to match this (with clear definition of what the two properties are and how to compute them)
- I'm not certain how the
"startedAtMs": {
"secs_since_epoch": 1730857625,
"nanos_since_epoch": 447534202
}
metadata
- the spec calls for a map that looks like below. Trin adds a radius field to that always seems to be populated with null (not sure if this is needed for glados or not)
"0xdeadbeef..." : {
"enr": "enr-...",
"distance": "0x1234..."
}
- Since the radius always seems to be
null
, I'm not sure if this is a helpful additional element or not (though notionally get why it would be useful). Also, not sure ifglados
needs this value or not for audits
One other thing I noticed is that the playground representation of the spec doesn't currently expose all of the lower level traceResult
types (notably traceResultMetadata
and traceResultResponses
) and you have to actually open the raw spec to see them. We should fix this so they are clickable from the playground interface. I'll figure out how to make these clickable so we can see them.
Metadata
Metadata
Assignees
Labels
No labels