File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
libs/fsp-rewards/src/reward-calculation/fdc Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,11 @@ export function extractFDCRewardData(
184184
185185 for ( const submission of bitVoteSubmissions ) {
186186 const submitSignatureAddress = rewardEpoch . getSubmitSignatureAddressFromSubmitAddress ( submission . submitAddress ) . toLowerCase ( ) ;
187+ // we consider last bitvote for each submission only
188+ const bitVote = submitSignatureAddressToBitVote . get ( submitSignatureAddress ) ;
189+ if ( consensusBitVote === undefined || ! isConsensusVoteDominated ( consensusBitVote , bitVote ) ) {
190+ continue ;
191+ }
187192 const submissionAddress = rewardEpoch . getSubmitAddressFromSubmitSignatureAddress ( submitSignatureAddress ) . toLowerCase ( ) ;
188193 if ( ! submitSignatureSenders . has ( submitSignatureAddress ) ) {
189194 const offender : FDCOffender = {
You can’t perform that action at this time.
0 commit comments