From ff780cd3a67fb005de49440accfacadfc03783da Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Thu, 20 Oct 2022 10:43:10 -0700 Subject: [PATCH] Make ReadyToSend use 340 nodes instead of the number reported in the NDF since it is wrong (many are offline) --- bindings/follow.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/follow.go b/bindings/follow.go index 56c653af4..6f892e415 100644 --- a/bindings/follow.go +++ b/bindings/follow.go @@ -99,6 +99,10 @@ func (c *Cmix) ReadyToSend() bool { jww.FATAL.Panicf("Failed to get node registration status: %+v", err) } + // FIXME: This is a fix put in place because not all nodes in the NDF are + // online. This should be fixed. + total = 340 + return numReg >= total*7/10 } -- GitLab