Skip to content

Commit

Permalink
filter candidates not in whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Mar 8, 2023
1 parent c9a6881 commit 10d515c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BurgerStrategist/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ static void Main(string[] args)
// TODO: FIX
(AGENTS.Count < 12).Assert();

List<byte[]> SELECTS = CMS.Take(AGENTS.Count).ToList();
List<byte[]> SELECTS = CMS.FindAll(v => BNEO.MakeScript("candidate", v).Call().Single().GetBoolean()).Take(AGENTS.Count).ToList();
(AGENTS.Count <= SELECTS.Count).Assert();
List<BigInteger> SELECT_K = SELECTS.Select(v => ELECTEDS.Zip(ELECTED_K).FindByOrDefault(v)).ToList();
List<BigInteger> SELECT_V = SELECTS.Select(v => CANDIDATES.Zip(CANDIDATE_V).FindBy(v)).ToList();
$"SELECTS: {String.Join(", ", SELECTS.Select(v => v.ToHexString()))}".Log();
Expand Down

0 comments on commit 10d515c

Please sign in to comment.