mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Check that proposal is in correct cycle
This commit is contained in:
parent
c86241abeb
commit
a0bba5d716
1 changed files with 2 additions and 0 deletions
|
@ -559,7 +559,9 @@ public class VoteResultService implements DaoStateListener, DaoSetupService {
|
|||
evaluatedProposals.forEach(evaluatedProposal -> evaluatedProposalsByTxIdMap.put(evaluatedProposal.getProposalTxId(), evaluatedProposal));
|
||||
|
||||
// Proposals which did not get any vote need to be set as failed.
|
||||
// TODO We should not use proposalListPresentation here
|
||||
proposalListPresentation.getActiveOrMyUnconfirmedProposals().stream()
|
||||
.filter(proposal -> periodService.isTxInCorrectCycle(proposal.getTxId(), chainHeight))
|
||||
.filter(proposal -> !evaluatedProposalsByTxIdMap.containsKey(proposal.getTxId()))
|
||||
.forEach(proposal -> {
|
||||
ProposalVoteResult proposalVoteResult = new ProposalVoteResult(proposal, 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue