SimplyStaking / panic_cosmos

🚨 PANIC for Cosmos
GNU General Public License v3.0
47 stars 36 forks source link

Network Monitor Crashes If Chain Has Not Started #35

Closed migueldingli1997 closed 4 years ago

migueldingli1997 commented 4 years ago

The network monitor crashes if the chain of the nodes being monitored has not started. This can be fixed by checking for the presence of the "last_block_height" value before trying to obtain it, or using the "last_block_height" value under NODE:26657/status/, which seems to be available even before the chain starts.

The error message is: Network monitor (NETWORK_MONITOR_NAME) terminated due to exception: 'last_block_height'