From b805c5f004e6d49086f653d1dde7f3c35da3841a Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 3 Apr 2024 09:21:10 +0200 Subject: [PATCH] Prevents duplicate addresses to be sent in the same reward request --- Tools/TestNetRewarder/Processor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/TestNetRewarder/Processor.cs b/Tools/TestNetRewarder/Processor.cs index 032b0ef..d710a90 100644 --- a/Tools/TestNetRewarder/Processor.cs +++ b/Tools/TestNetRewarder/Processor.cs @@ -104,7 +104,7 @@ namespace TestNetRewarder private EthAddress[] PerformCheck(RewardConfig reward, ChainState chainState) { var check = GetCheck(reward.CheckConfig); - return check.Check(chainState); + return check.Check(chainState).Distinct().ToArray(); } private ICheck GetCheck(CheckConfig config)