less for qourum
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 2m0s

This commit is contained in:
matst80
2024-11-11 21:01:27 +01:00
parent 640ee4f1b3
commit c8488835cd

View File

@@ -317,7 +317,7 @@ func (p *SyncedPool) RequestOwnership(id CartId) error {
if ok == 0 && all > 0 {
return fmt.Errorf("no remotes confirmed change")
}
if ok < (all/2)+1 {
if ok < (all / 2) {
return fmt.Errorf("quorum not reached")
}
return nil