informalsystems / atomkraft

Advanced fuzzing via Model Based Testing for Cosmos blockchains
Apache License 2.0
77 stars 10 forks source link

Failed GRPC connections with reduced block time #174

Closed rnbguy closed 1 year ago

rnbguy commented 2 years ago

When block time (timeout_commit in config.toml) is reduced, GRPC calls are failed. This is because, even though Tendermint has started to produce blocks, GRPC endpoints are not ready.

In the following code, .spinup() waits for RPC endpoints.

https://github.com/informalsystems/atomkraft/blob/f95e408eba8599471c7e23946b89f4971c8a6ee3/atomkraft/chain/testnet.py#L310-L330

But it should also wait for GRPC endpoints, probably for LCD/REST endpoints too.