Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

DKG Evidence #205

Merged
merged 12 commits into from
Oct 14, 2020
Merged

Conversation

jinmannwong
Copy link
Contributor

@jinmannwong jinmannwong commented Oct 13, 2020

  • Create DKG evidence type
  • DKG submits evidence on failing due to insufficient encryption keys or qual size

Note: collection of complaint answers has changed and node's now have to wait for their own message to appear in a block before they include it. This is to ensure that everyone generates evidence at the same height.

@@ -530,5 +530,12 @@ bool BeaconSetupService::CheckQualComplaints()
return true;
}

bool BeaconSetupService::InQual(Identifier index) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type is Identifier here? It's being copied into the function, I also am not sure of what the reason is for constructing set from the set that comes back from beacon->qual(). BaseDkg already has an InQual method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the validator index so uint32 which is why I didn't bother passing it by reference. Thanks, I didn't realise BaseDkg has a InQual method. I will change it so that it uses that.

@jinmannwong jinmannwong merged commit 38f8096 into fetchai:master Oct 14, 2020
@jinmannwong jinmannwong deleted the improvements/dkg_evidence branch October 14, 2020 09:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants