mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
This commit is contained in:
parent
3d5ff1c674
commit
83b7ed9fea
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ public class VoteRevealService implements DaoStateListener, DaoSetupService {
|
|||
// block which would be already the break and would invalidate the vote reveal.
|
||||
boolean isLastBlockInPhase = chainHeight == periodService.getLastBlockOfPhase(chainHeight, DaoPhase.Phase.VOTE_REVEAL);
|
||||
boolean isBlindVoteTxInCorrectPhaseAndCycle = periodService.isTxInPhaseAndCycle(myVote.getTxId(), DaoPhase.Phase.BLIND_VOTE, chainHeight);
|
||||
if (isInVoteRevealPhase && isNotLastBlockInPhase && isBlindVoteTxInCorrectPhaseAndCycle) {
|
||||
if (isInVoteRevealPhase && !isLastBlockInPhase && isBlindVoteTxInCorrectPhaseAndCycle) {
|
||||
log.info("We call revealVote at blockHeight {} for blindVoteTxId {}", chainHeight, myVote.getTxId());
|
||||
// Standard case that we are in the correct phase and cycle and create the reveal tx.
|
||||
revealVote(myVote, true);
|
||||
|
|
Loading…
Add table
Reference in a new issue