You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
Lotion uses Tendermint, a general purpose Byzantine Fault Tolerant consensus engine. It's much more correct, secure, and flexible than PoA.
You can build Proof of Stake as an economic layer in lotion by modifying the validator voting power based on some token stake. Eg:
// to modify voting power in a tx handler:
app.use(function(state, tx, context){
context.validators[tx.somePubKey] += 42
})
// to modify voting power in endblock:
app.useBlock(function(state, context){
context.validators['aOSx00CgYJ3/WGNgioJEs91irUHNvy+bV20hRTby7ak='] = 200
})
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is lotion only uses PoA?
According to Consensus Compare: Casper vs. Tendermint, tendermint uses Slasher-applied-PoS.
Any way to use PoS on lotion.js?
The text was updated successfully, but these errors were encountered: