Apply fix from #1827 to rekey
This commit is contained in:
parent
cc08dc7400
commit
19d64a476a
|
@ -282,7 +282,7 @@ func (c *Core) BarrierRekeyUpdate(key []byte, nonce string) (*RekeyResult, error
|
||||||
// Check if we already have this piece
|
// Check if we already have this piece
|
||||||
for _, existing := range c.barrierRekeyProgress {
|
for _, existing := range c.barrierRekeyProgress {
|
||||||
if bytes.Equal(existing, key) {
|
if bytes.Equal(existing, key) {
|
||||||
return nil, nil
|
return nil, fmt.Errorf("given key has already been provided during this generation operation")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue