mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Fix issue with wrong merit
- We need to ignore the compensationProposal from the current cycle when creating the merit list
This commit is contained in:
parent
ee1317c64a
commit
d9cada9ec0
@ -271,10 +271,11 @@ public class MyBlindVoteListService implements PersistedDataHost, BsqStateListen
|
||||
|
||||
// blindVoteTxId is null if we use the method from the getCurrentlyAvailableMerit call.
|
||||
public MeritList getMerits(@Nullable String blindVoteTxId) {
|
||||
// Create a lookup set for txIds of own comp. requests
|
||||
// Create a lookup set for txIds of own comp. requests from past cycles (we ignore request form that cycle)
|
||||
Set<String> myCompensationProposalTxIs = myProposalListService.getList().stream()
|
||||
.filter(proposal -> proposal instanceof CompensationProposal)
|
||||
.map(Proposal::getTxId)
|
||||
.filter(txId -> periodService.isTxInPastCycle(txId, periodService.getChainHeight()))
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
return new MeritList(bsqStateService.getIssuanceSet().stream()
|
||||
|
Loading…
Reference in New Issue
Block a user