lotion
lotion copied to clipboard
create multiple nodes with multiple validators with lotion
Hi guys,
I thank you very much for the awesome work done here! You just opened the blockchain to a large community of JS developers. Despite that, I've been working for some days with lotion and I noticed these things :
1- devMode: false
doesnt seem to do anything. Every restart creates a brand new blockchain database. How to disable that ?
2- I was able to create multiple nodes wiith succeful communication between them but with only one validator (the first node I created). How do I add validators to the blockchain ? How to create multiple nodes at once ?
3- I cant access http://localhost:${lotionPort}/txs
anymore. How can I then access the list of transactions ?
I'm on the latest lotion version (0.4.10).
Please continue the development of this awesome project!
the same question here, how can i add a validator after the whole network is in production ?
Not associated with this project, but I'm guessing you do with the docs say under the app.use section
If you'd like to change how much voting power a validator should have, simply mutate context.validators[pubKey].
I'm guessing you do this in the useBlock function...and it would make sense to loop through some state and look at some staked variables and balances to set up validators. I'm guessing the tendermint stuff takes over after the block is written to select the next validator.
if this information is documented in a different project, please link it.. I go as far as using the examples and production setup before i consider writing any code using this framework