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
[QA] Inconsistency between the info obtained from /api/v1/x-chain-activity/?timeSpan=7d&by=tx and /api/v1/top-chain-pairs-by-num-transfers?timeSpan=7d for the same chain
#535
Closed
SamantaCasal opened this issue
Jul 13, 2023
· 2 comments
### Description
Tracking issue: #535.
This pull request fixes an inconsistency between the endpoints `GET /api/v1/x-chain-activity` and `GET /api/v1/top-chain-pairs-by-num-transfers`.
The inconsistency arose because the endpoints computed the data in slightly different ways.
It was resolved by modifying the `GET /api/v1/top-chain-pairs-by-num-transfers` endpoint to use the same data source as `GET /api/v1/x-chain-activity`.
Environment:
MacBook Pro, macOS Ventura 13.1.1, Chrome Version 113.0.5672.63.
** On STG and PROD**
Steps
1 Go to https://api.staging.wormscan.io/api/v1/x-chain-activity/?timeSpan=7d&by=tx
2 Look for the txs of the chain 22
3 go to
https://api.staging.wormscan.io/api/v1/top-chain-pairs-by-num-transfers?timeSpan=7d
4 See the results of the chain 22
5 Compare the number of transactions produced by each endpoint
Obtained result:
The https://api.staging.wormscan.io/api/v1/top-chain-pairs-by-num-transfers?timeSpan=7d endpoint seems to be "behind" the info that comes in the https endpoint: //api.staging.wormscan.io/api/v1/x-chain-activity/?timeSpan=7d&by=tx
Note: this difference causes us to display inconsistent data on https://front.staging.wormscan.io/#/
Expected result:
Endpoints should return the same information about the specified string.
Evidence:
https://github.com/wormhole-foundation/wormhole-explorer/assets/69044575/30497063-c9f1-4a1c-8b2f-67470d402f02
The text was updated successfully, but these errors were encountered: