Closed ameba23 closed 1 month ago
Converting to draft as two tests are failing locally (And CI is stuck: https://github.com/entropyxyz/devops-infrastructure/issues/66 )
I am a little bit stuck on getting the reshare test to pass.
There are some issues with the block number having 1 subtracted from it which were not made clear before, because the OcwMessage which actually got passed from the chain was not needed since alice was no longer a signer, and the other OcwMessages which were mocked worked correctly. Now we do need alice to participate in the reshare, and things are not working.
https://github.com/entropyxyz/entropy-core/pull/1053 introduced random selection of initial signing set on jumpstart, but our pre-generated keyshares were always being added to alice, bob and charlies kvdbs, regardless of whether they were selected as initial signers.
This fixes that - the pre-generated keyshares are given to whoever is initially selected to be a signer.