quorum icon indicating copy to clipboard operation
quorum copied to clipboard

Why do all nodes run blockvoting strategy

Open magooster opened this issue 9 years ago • 7 comments

All nodes irrespective of their block making and/or voting rights run the BlockVoting strategy (Generate block creation events, create a block, vote, apply transactions to pending state, reset pending state & pause/resume block making scheduler). Aren't quorum nodes without a block generation key and/or vote key 'wasting' processing cycles from a consensus perspective.

magooster avatar Dec 15 '16 11:12 magooster

Thanks for posting this issue, this is currently being reviewed.

davoell avatar Jan 06 '17 21:01 davoell

From a consensus point of view there are no resources wasted. There is an internal event mechanism that dictates when a new vote tx must be broadcasted or a new block must be created. When that event is raised the vote/block maker logic is notified. That logic will check if the node is configured as a voter or block maker node. And if not it does nothing.

bas-vk avatar Jan 13 '17 20:01 bas-vk

But doesn't that mean non blockmaker nodes are applying new transactions (executing) to the pending state, only to redo this once a new block comes in. Shouldn't only block makers be building on the pending state?

magooster avatar Jan 26 '17 08:01 magooster

The non blockmakers still need the pending state to validate any transactions submitted through them, no?

gsalgado avatar Jul 12 '17 16:07 gsalgado

Where can I learn about your complete consensus strategy ?

sivachaitanya avatar Dec 04 '17 05:12 sivachaitanya

Please see https://github.com/jpmorganchase/quorum/issues/266

patrickmn avatar Jan 25 '18 21:01 patrickmn

@sivachaitanya please see https://github.com/jpmorganchase/quorum/blob/master/raft/doc.md and https://github.com/ethereum/EIPs/issues/650

patrickmn avatar Jan 25 '18 21:01 patrickmn