cardano-ledger icon indicating copy to clipboard operation
cardano-ledger copied to clipboard

Improve constrained generators of votes

Open Soupstraw opened this issue 8 months ago • 1 comments

The constrained generator for votes in the GovActionState in the RATIFY rule generates mostly invalid votes. The generators need to be biased more strongly towards generating valid votes.

The problem seems to be that the credentials that are voting are not actually active (e.g. CC votes come from non-CC-members, SPO votes come from pools that are not registered). In order to fix this, the generators should be picking the voter credentials from the corresponding maps of registered voters. It should also sometimes pick completely random credentials like it does now so we can test that our implementation conforms with invalid voters.

Soupstraw avatar May 28 '24 13:05 Soupstraw