Open shogochiai opened 6 years ago
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
})
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?