Node: Block height is always zero on Terra2 (#2762)

* Node: Block height is always zero on Terra2

Change-Id: Ie504139fa3cd9fcce78dd53ca9a0cfc797f3bf30

* Remove test logging

Change-Id: I273267171f7201818395f17d87592ae75f0ce5c8
This commit is contained in:
bruce-riley 2023-04-20 16:28:51 -05:00 committed by GitHub
parent 3dd4fe26b9
commit 4ed89172cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ func NewWatcher(
// Do not add a leading slash
latestBlockURL := "blocks/latest"
// Injective does things slightly differently than terra
if chainID == vaa.ChainIDInjective {
// Terra2 and Injective do things slightly differently than terra classic
if chainID == vaa.ChainIDInjective || chainID == vaa.ChainIDTerra2 {
latestBlockURL = "cosmos/base/tendermint/v1beta1/blocks/latest"
}