Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

create multiple nodes with multiple validators with lotion #171

Open
salembaira opened this issue Mar 25, 2019 · 3 comments
Open

create multiple nodes with multiple validators with lotion #171

salembaira opened this issue Mar 25, 2019 · 3 comments

Comments

@salembaira
Copy link

salembaira commented Mar 25, 2019

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!

@ghost
Copy link

ghost commented Jun 12, 2019

the same question here, how can i add a validator after the whole network is in production ?

@skilesare
Copy link

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.

@bmatusiak
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants