ethereum / trin

An Ethereum portal client: a json-rpc server with nearly instant sync, and low CPU & storage usage
347 stars 105 forks source link

feat(ethportal-api): adds within-radius boolean to NodeInfo within QueryTrace #1332

Closed mrferris closed 4 days ago

mrferris commented 5 days ago

What was wrong?

Including query-time radius information in any query trace analysis requires a property within ethportal-api's query_trace::NodeInfo struct so that a node's radius data can be optionally recorded.

How was it fixed?

Adds the radius: Option<B256> to the ethportal_api::query_trace::NodeInfo for recording the radius. It's an Option because radius of most nodes won't be known by trin at query time, most will be filled in after the fact by Glados before displaying the trace.

To-Do