aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils.go')
-rw-r--r--core/utils.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/utils.go b/core/utils.go
index 0250cf2..c9d5f84 100644
--- a/core/utils.go
+++ b/core/utils.go
@@ -158,17 +158,13 @@ func HashConfigurationBlock(
// VerifyAgreementResult perform sanity check against a types.AgreementResult
// instance.
func VerifyAgreementResult(
- res *types.AgreementResult, cache *utils.NodeSetCache) error {
+ res *types.AgreementResult, notarySet map[types.NodeID]struct{}) error {
if res.Position.Round >= DKGDelayRound {
if len(res.Randomness) == 0 {
return ErrMissingRandomness
}
return nil
}
- notarySet, err := cache.GetNotarySet(res.Position.Round)
- if err != nil {
- return err
- }
if len(res.Votes) < len(notarySet)*2/3+1 {
return ErrNotEnoughVotes
}