keppel / lotion

✨ Smooth, easy blockchain apps ✨
https://lotionjs.com
974 stars 133 forks source link

Tendermint silently fails to launch when adding additional validators. #62

Open Jaxkr opened 6 years ago

Jaxkr commented 6 years ago

I have an application with a genesis.json and a keys.json which holds the keys for the validator. I can repeatedly delete the folder from my .lotion directory and it spins up perfectly each time.

However, if I add a second validator to the list it creates the data folder, but no requests to Tendermint on port 3000 from my web browser go through, they all fail to connect.

There is no debug message in my terminal, and logTendermint is on. localhost:3000/state gives me nothing, just fails to load.

I do not know how to begin debugging this issue.

keppel commented 6 years ago

Are you also running both validators? 2/3+ of the validators (by voting power) have to be online for new blocks to be created, and Lotion waits for the first block to be created to set up all the transaction server stuff.

spentak commented 6 years ago

Can we make this an official issue?

Lost countless hours thinking there was bugs due to not all validators being online yet. Request that connect and Lotion both log 'Waiting for validators to come online' or something similar instead of hanging.