correct return argument

This commit is contained in:
nikkolasg 2020-08-11 13:00:23 +01:00
parent 7a7cce2538
commit 37fe0dbed2
No known key found for this signature in database
GPG Key ID: 3F484EC30DEED100

View File

@ -171,7 +171,8 @@ func (db *DrandBeacon) VerifyEntry(curr types.BeaconEntry, prev types.BeaconEntr
return nil
}
if be := db.getCachedValue(curr.Round); be != nil {
return be
// return no error if the value is in the cache already
return nil
}
b := &dchain.Beacon{
PreviousSig: prev.Data,