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

[BUG REPORT] Does not filter pruned nodes. #868

Open
DragonDmoney opened this issue Jun 2, 2022 · 1 comment
Open

[BUG REPORT] Does not filter pruned nodes. #868

DragonDmoney opened this issue Jun 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@DragonDmoney
Copy link

DragonDmoney commented Jun 2, 2022

Describe the bug
Some blocks are unqueriable

To Reproduce

from pypocket.pokt import PoktRPCDataProvider

rpc_url = "https://mainnet.gateway.pokt.network/v1/lb/<application>"
pokt_rpc = PoktRPCDataProvider(rpc_url)

nodes = pokt_rpc.get_nodes(height=2, per_page=1)

Code: 400 – Message: error loading store: KVStoreKey{0xc002d34840, pocketcore}, in LoadLazyVersion: version does not exist
If I were to guess the cause of this issue is that the gateway does not make sure that a node isn't pruned (no archival queries). Not all nodes are pruned so it may take a couple tries to get this error.

@DragonDmoney DragonDmoney added the bug Something isn't working label Jun 2, 2022
@crisog
Copy link
Contributor

crisog commented Jun 2, 2022

This is something that is also true for other blockchains, such as archival ethereum or any other archival. The idea was to implement an "archival check" in such way that it can be re-utilized on any archival chain, the same way the sync check does.

I think the issue is #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants