Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Height/integrity check fails for near resulting in no nodes being selected #35

Open
Andrew-Pohl opened this issue Apr 26, 2024 · 2 comments

Comments

@Andrew-Pohl
Copy link

Describe the Bug

When using an app staked for near in gateway server it fails to grab the block height with an invalid syntax error. Which then results in "cannot find source of truth for data integrity check" which means you get "Something went wrong node selector can't find node" when trying to send a relay.

My guess here is that it is due to near not confirming to jsonRPC spec.

Expected Behavior

Gateway server should be able to grab the block height of near in health checks

Steps to Reproduce

  1. Stake an app with near
  2. Launch gateway server with said app stake
  3. Observe Logs for failed health/integrity check
  4. Try sending a relay on 0052
@Andrew-Pohl
Copy link
Author

Told by Dermot near isn't supported yet, suggested putting a "supported chains" section in docs. Happy to look at adding support for near to gateway server

@nodiesBlade
Copy link
Collaborator

nodiesBlade commented Apr 30, 2024

The gateway server currently supports:

  1. EVM chains that support eth_getBlockByNumber and eth_blockNumber (encapsulate majority if not all evm chains)
  2. Solana
  3. POKT

Given that Near RPC calls are slightly different and does not conform to the evm, this requires a special checkjob but should be possible with minimal code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants