Use a 2/3 instead of 1/2 majority in Aura.#109
Conversation
|
Also probably in this test |
|
Good catch! Unfortunately the tests passed with the |
|
That's another test that uses an old validator set contract ABI, and (according to the docs) this implementation: https://gist.github.com/anonymous/2a43783647e0f0dfcc359bd6fd81d6d9 |
Well spotted! We could use the updated version or we might store this file alongside the tests, possibly having updated to Solidity v0.5. My version doesn't emit |
|
Yes, maybe we should try to make one test implementation work for all tests, and add |
|
I can't find where |
|
Possibly… if it's only in the test contract, maybe it's only used in that test? |
|
I don't think the event is ever used at all. We can try without it to see if the test still passes. |
ce69bef to
44e0212
Compare
varasev
left a comment
There was a problem hiding this comment.
It works fine but we need to add supermajorityTransition spec option: #108 (comment)
|
Since we need 2/3 of the majority not only for POSDAO but also for our existing networks (Core/Sokol/Dai), let's do the same changes made in this PR above the original Parity code (which is not modified for POSDAO) and try to launch Parity's original unit tests. |
|
I added a |
The corresponding parameter in |
|
Ah, right, it's camel-cased. 👍 |
|
Can we add some line to the logs which would tell us that the |
|
I added a message—is |
|
Let's display it on the Can we display it starting from the block when it is applied? Like https://github.com/paritytech/parity-ethereum/blob/e91eb337c9d01ff339565e682bcd2b4b7608df6d/ethcore/src/engines/authority_round/mod.rs#L1429. |
|
I updated the last commit accordingly. 👍 |
|
Thanks, I will try to test that 👍 |
|
Please do the same for |
|
Done. |
|
I put it into |
|
I looked at the callers of |
varasev
left a comment
There was a problem hiding this comment.
I guess multi reporting mentioned in my comment is not a problem. So, since we don't see any issues here, let's merge this into aura-pos branch.
* Use a 2/3 instead of 1/2 majority in Aura. * Make Aura quorum transition configurable. * use the quorum_2_3_transition configuration parameter * Print an info message if 2/3 quorum is set.
* Use a 2/3 instead of 1/2 majority in Aura. * Make Aura quorum transition configurable. * use the quorum_2_3_transition configuration parameter * Print an info message if 2/3 quorum is set.


Closes #108.