From 494df928ddd1080417ae2d76129896f7b5a67749 Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Wed, 12 Oct 2022 17:35:05 -0700
Subject: [PATCH] hacked the client to work with poor gateway propogation

---
 cmix/gateway/hostPool.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmix/gateway/hostPool.go b/cmix/gateway/hostPool.go
index c37dbdf2f..0bf9d5a92 100644
--- a/cmix/gateway/hostPool.go
+++ b/cmix/gateway/hostPool.go
@@ -14,7 +14,6 @@ package gateway
 
 import (
 	"encoding/json"
-	"math"
 	"sort"
 	"strings"
 	"sync"
@@ -823,7 +822,10 @@ func getPoolSize(ndfLen, maxSize uint32) (uint32, error) {
 			"Unable to create HostPool: no gateways available")
 	}
 
-	poolSize := uint32(math.Ceil(math.Sqrt(float64(ndfLen))))
+	// fix-me: this is a HACK to get it working in testnet night of 10/12/2022
+	// DO NOT PUSH TO LIVE - gateway gossip shuffle must be fixed
+	//poolSize := uint32(math.Ceil(math.Sqrt(float64(ndfLen))))
+	poolSize := ndfLen
 	if poolSize > maxSize {
 		return maxSize, nil
 	}
-- 
GitLab