Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java

Co-Authored-By: ManfredKarrer <mk@nucleo.io>
This commit is contained in:
sqrrm 2019-03-26 18:56:28 -05:00 committed by GitHub
parent 3d5ff1c674
commit 83b7ed9fea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);