polkascan / polkascan-pre-explorer-api

Polkascan PRE Explorer API
GNU General Public License v3.0
7 stars 23 forks source link

HeartbeatReceived event data does not match up with corresponding session key for validator #2

Open akhanaton opened 4 years ago

akhanaton commented 4 years ago

Description I am querying the /api/v1/event endpoint and as expected getting the latest events. I am trying to work with "HeartbeatReceived" events. Here is an example of a response below:

image

The results are not very useful if I am unable to connect them to the Validator that emited the message in the first place. My understanding is the value field in the attributes array should correlate with the session key currently associated with that specific validator.

So the logical thing would be to now query /api/v1/session/validator and look for the corresponding validator.

Issue

The is no validator that has a corresponding Id. I went a step further and used the raw value from the event to see if there is a corresponding session_id (example below):

image

None of the current six validator's session_id match any of the "valueRaw" fields of the events endpoint.