Closed afck closed 5 years ago
Good catch! Unfortunately the tests passed with the * 2
and now fail with the * 3 > … * 2
. I'll try to fix them.
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 @vkomenda: Is that the one you already created an updated version of?
That's another test that uses an old validator set contract ABI
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 ValidatorsChanged
.
Yes, maybe we should try to make one test implementation work for all tests, and add ValidatorsChanged
to it.
I can't find where ValidatorsChanged
is received in Parity. Maybe it's unused?
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.
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 quorum_2_3_transition
option to the Aura configuration.
I added a
quorum_2_3_transition
option to the Aura configuration.
The corresponding parameter in spec.json
is called quorum23Transition
, right?
Ah, right, it's camel-cased. :+1:
Can we add some line to the logs which would tell us that the quorum23Transition
is applied?
I added a message—is trace
enough or should it be a higher log level?
Let's display it on the info
level like here: https://github.com/paritytech/parity-ethereum/blob/e91eb337c9d01ff339565e682bcd2b4b7608df6d/ethcore/src/engines/authority_round/mod.rs#L1429 so that it would be shown in the logs even when logging = "engine=trace"
is not defined in toml
config file.
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. :+1:
Thanks, I will try to test that :+1:
Please do the same for vk-stable-mulmod
branch: https://github.com/poanetwork/parity-ethereum/pull/109/commits/aa7dce71ae26e0c03765d09f4de3d31d3fedace2
Done.
(@vkomenda: I took the liberty of directly pushing the log statement onto vk-stable-mulmod
.
I updated the last commit accordingly. 👍
I see two lines in the logs for some reason:
And for the detailed logs (another, non-validator, node):
I put it into on_close_block
—another method that seems to be called multiple times for some reason, despite #103…
I looked at the callers of on_close_block
and it looks like import_verified_blocks
is called multiple times. This can happen if the block queue is flushed multiple times.
Closes #108.