You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a problem in the GetNodeRegistryAtHeight() query. If a there are 2 records under a group by, the query will consider any of the records, not only the latest one.
Steps to reproduce
create an artificial records in the node_registry table that have same id but different height.
make that first record to have registration_status=0 and the second one registration_status=2
run the original query. It will return that artificial node although the latest registration_status==2
Expected behavior
If such situation happens, the query should consider the latest state of the record.
The text was updated successfully, but these errors were encountered:
Description
I found a problem in the

GetNodeRegistryAtHeight()
query. If a there are 2 records under a group by, the query will consider any of the records, not only the latest one.Steps to reproduce
node_registry
table that have same id but different height.registration_status=0
and the second oneregistration_status=2
Expected behavior
If such situation happens, the query should consider the latest state of the record.
The text was updated successfully, but these errors were encountered: