Add a governor module to protect against late quorum (#2973)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2021-12-01 17:56:31 +01:00
committed by GitHub
parent 6089f11c2f
commit abf6024faf
7 changed files with 446 additions and 13 deletions

View File

@ -65,7 +65,7 @@ function runGovernorWorkflow () {
// vote
if (tryGet(this.settings, 'voters')) {
this.receipts.castVote = [];
for (const voter of this.settings.voters) {
for (const voter of this.settings.voters.filter(({ support }) => !!support)) {
if (!voter.signature) {
this.receipts.castVote.push(
await getReceiptOrRevert(