Apply fix from #1827 to rekey

This commit is contained in:
Jeff Mitchell 2016-09-01 17:42:28 -04:00
parent cc08dc7400
commit 19d64a476a
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ func (c *Core) BarrierRekeyUpdate(key []byte, nonce string) (*RekeyResult, error
// Check if we already have this piece
for _, existing := range c.barrierRekeyProgress {
if bytes.Equal(existing, key) {
return nil, nil
return nil, fmt.Errorf("given key has already been provided during this generation operation")
}
}