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

terra.tendermint.block_info return wrong latest block height 467248 #174

Open
uranik777 opened this issue Aug 17, 2022 · 7 comments
Open

Comments

@uranik777
Copy link

  • terra_sdk version: v3.0.1
  • Python version: 3.10.6
  • Operating System: Windows 10

Description

method terra.tendermint.block_info return wrong latest block height 467248 for phoenix-1 network,
in bock explorer >1171995 blocks - https://terrasco.pe/mainnet/blocks/1171995

What I Did

from terra_sdk.client.lcd import LCDClient
terra = LCDClient("https://phoenix-lcd.terra.dev", "phoenix-1")
out = terra.tendermint.block_info()['block']['header']['height']
print(out)
# out: 467248
@Vritra4
Copy link
Contributor

Vritra4 commented Aug 18, 2022

@uranik777 still having this problem? i tried to reproduce it but it doesn't happen to me.

@uranik777
Copy link
Author

uranik777 commented Aug 18, 2022

@Vritra4 Today is the same, tried on another virtual machine with python 3.7.7

>~/src# python3.7 test.py
467248

@Vritra4
Copy link
Contributor

Vritra4 commented Aug 19, 2022

@uranik777 could you tell me the height returned by curl https://phoenix-lcd.terra.dev/cosmos/base/tendermint/v1beta1/blocks/latest on your virtual machines?

@uranik777
Copy link
Author

@Vritra4

# curl https://phoenix-lcd.terra.dev/cosmos/base/tendermint/v1beta1/blocks/latest
{"block":{"header":{"version":{"block":"11","app":"0"},"chain_id":"phoenix-1","height":"467248","time":"2022-06-29T10:05:37.456421891Z","last_block_id":{"hash":"7/WT7/87V6C/Gap0VxEotetb5Y+aD3yKTvAj1yx54s4=","part_set_header":{"total":1,"hash":"td23sldDWYUSOYZZ32aMA0G2bz9xkFda2Q5GXPxJUUw="}},"last_commit_hash":"cfbFtUjVjWZqFDuH6GBTvhzsd1ignOFXX2OPHiTegQw=","data_hash":"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=","validators_hash":"119P3r2hbDXCggvc24BAg9dtHAPcspDfldWnet3/bM8=","next_validators_hash":"119P3r2hbDXCggvc24BAg9dtHAPcspDfldWnet3/bM8=","consensus_hash":"5mDvFKlRQ9sPPq8vMfF33jNN5atlBXn9CToQy66G1aY=","app_hash":"klLcM9DadJSRUzt19xx0Ga8YzvPBUQgeLnTIPb4q/IU=","last_results_hash":"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=","evidence_hash":"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=","proposer_address":"ttTB5lQz6YLRt/Zx7UUH4zeM0Dw="},"data":{"txs":[]}}}

@JSHan94
Copy link
Contributor

JSHan94 commented Sep 6, 2022

@uranik777 Still have problem? Can't produce the issue. It seems your vm is looking up wrong pheonix node(API server). Have you ever tried to update cURL?

@uranik777
Copy link
Author

@JSHan94 I tried to open the link https://phoenix-lcd.terra.dev/cosmos/base/tendermint/v1beta1/blocks/latest through the TOR browser (so that requests come from different IPs), and I get different results, not always up-to-date. Probably different terra servers respond to different ranges of ip addresses.

@JSHan94
Copy link
Contributor

JSHan94 commented Sep 8, 2022

@JSHan94 I tried to open the link https://phoenix-lcd.terra.dev/cosmos/base/tendermint/v1beta1/blocks/latest through the TOR browser (so that requests come from different IPs), and I get different results, not always up-to-date. Probably different terra servers respond to different ranges of ip addresses.

Yeah, maybe related with AWS load balancer for lcd node. I will report it to the infra team.

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

3 participants