From 8fd3f7918fe3f947d1f68ce7d05811aca2c1836e Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Fri, 17 Dec 2021 10:13:55 -0500
Subject: [PATCH] Add flag to force use of excluded rounds

---
 cmd/root.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmd/root.go b/cmd/root.go
index bf621540c..b8ce19238 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -312,6 +312,7 @@ var rootCmd = &cobra.Command{
 		paramsUnsafe := params.GetDefaultUnsafe()
 		wg := &sync.WaitGroup{}
 		sendCnt := int(viper.GetUint("sendCount"))
+		paramsE2E.UseExcluded = viper.GetBool("splitSends")
 		wg.Add(sendCnt)
 		go func() {
 			//sendDelay := time.Duration(viper.GetUint("sendDelay"))
@@ -987,6 +988,9 @@ func init() {
 	rootCmd.Flags().UintP("sendDelay",
 		"", 500, "The delay between sending the messages in ms")
 	viper.BindPFlag("sendDelay", rootCmd.Flags().Lookup("sendDelay"))
+	rootCmd.Flags().BoolP("splitSends",
+		"", true, "Force sends to go over multiple rounds if possible")
+	viper.BindPFlag("splitSends", rootCmd.Flags().Lookup("splitSends"))
 
 	rootCmd.Flags().BoolP("verify-sends", "", false,
 		"Ensure successful message sending by checking for round completion")
-- 
GitLab