From c8488835cd8c9e8b2ac9e39bb190118d9077b1d2 Mon Sep 17 00:00:00 2001 From: matst80 Date: Mon, 11 Nov 2024 21:01:27 +0100 Subject: [PATCH] less for qourum --- synced-pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synced-pool.go b/synced-pool.go index 2f63e31..6bc1a7b 100644 --- a/synced-pool.go +++ b/synced-pool.go @@ -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