mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Cleanup after code inspection
This commit is contained in:
parent
82e2a4860a
commit
0ba2f6fc92
2 changed files with 5 additions and 5 deletions
|
@ -129,6 +129,7 @@ public class BlindVoteStateMonitoringService implements DaoSetupService, DaoStat
|
||||||
// DaoStateListener
|
// DaoStateListener
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@SuppressWarnings("Duplicates")
|
||||||
@Override
|
@Override
|
||||||
public void onDaoStateChanged(Block block) {
|
public void onDaoStateChanged(Block block) {
|
||||||
int blockHeight = block.getHeight();
|
int blockHeight = block.getHeight();
|
||||||
|
@ -148,6 +149,7 @@ public class BlindVoteStateMonitoringService implements DaoSetupService, DaoStat
|
||||||
maybeUpdateHashChain(blockHeight);
|
maybeUpdateHashChain(blockHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("Duplicates")
|
||||||
@Override
|
@Override
|
||||||
public void onParseBlockChainComplete() {
|
public void onParseBlockChainComplete() {
|
||||||
parseBlockChainComplete = true;
|
parseBlockChainComplete = true;
|
||||||
|
|
|
@ -21,7 +21,6 @@ import bisq.core.dao.DaoSetupService;
|
||||||
import bisq.core.dao.governance.period.PeriodService;
|
import bisq.core.dao.governance.period.PeriodService;
|
||||||
import bisq.core.dao.governance.proposal.MyProposalList;
|
import bisq.core.dao.governance.proposal.MyProposalList;
|
||||||
import bisq.core.dao.governance.proposal.ProposalService;
|
import bisq.core.dao.governance.proposal.ProposalService;
|
||||||
import bisq.core.dao.governance.proposal.ProposalValidator;
|
|
||||||
import bisq.core.dao.monitoring.model.ProposalStateBlock;
|
import bisq.core.dao.monitoring.model.ProposalStateBlock;
|
||||||
import bisq.core.dao.monitoring.model.ProposalStateHash;
|
import bisq.core.dao.monitoring.model.ProposalStateHash;
|
||||||
import bisq.core.dao.monitoring.network.ProposalStateNetworkService;
|
import bisq.core.dao.monitoring.network.ProposalStateNetworkService;
|
||||||
|
@ -82,7 +81,6 @@ public class ProposalStateMonitoringService implements DaoSetupService, DaoState
|
||||||
private final GenesisTxInfo genesisTxInfo;
|
private final GenesisTxInfo genesisTxInfo;
|
||||||
private final PeriodService periodService;
|
private final PeriodService periodService;
|
||||||
private final ProposalService proposalService;
|
private final ProposalService proposalService;
|
||||||
private final ProposalValidator proposalValidator;
|
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final LinkedList<ProposalStateBlock> proposalStateBlockChain = new LinkedList<>();
|
private final LinkedList<ProposalStateBlock> proposalStateBlockChain = new LinkedList<>();
|
||||||
|
@ -103,14 +101,12 @@ public class ProposalStateMonitoringService implements DaoSetupService, DaoState
|
||||||
ProposalStateNetworkService proposalStateNetworkService,
|
ProposalStateNetworkService proposalStateNetworkService,
|
||||||
GenesisTxInfo genesisTxInfo,
|
GenesisTxInfo genesisTxInfo,
|
||||||
PeriodService periodService,
|
PeriodService periodService,
|
||||||
ProposalService proposalService,
|
ProposalService proposalService) {
|
||||||
ProposalValidator proposalValidator) {
|
|
||||||
this.daoStateService = daoStateService;
|
this.daoStateService = daoStateService;
|
||||||
this.proposalStateNetworkService = proposalStateNetworkService;
|
this.proposalStateNetworkService = proposalStateNetworkService;
|
||||||
this.genesisTxInfo = genesisTxInfo;
|
this.genesisTxInfo = genesisTxInfo;
|
||||||
this.periodService = periodService;
|
this.periodService = periodService;
|
||||||
this.proposalService = proposalService;
|
this.proposalService = proposalService;
|
||||||
this.proposalValidator = proposalValidator;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -133,6 +129,7 @@ public class ProposalStateMonitoringService implements DaoSetupService, DaoState
|
||||||
// DaoStateListener
|
// DaoStateListener
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@SuppressWarnings("Duplicates")
|
||||||
public void onDaoStateChanged(Block block) {
|
public void onDaoStateChanged(Block block) {
|
||||||
int blockHeight = block.getHeight();
|
int blockHeight = block.getHeight();
|
||||||
int genesisBlockHeight = genesisTxInfo.getGenesisBlockHeight();
|
int genesisBlockHeight = genesisTxInfo.getGenesisBlockHeight();
|
||||||
|
@ -150,6 +147,7 @@ public class ProposalStateMonitoringService implements DaoSetupService, DaoState
|
||||||
maybeUpdateHashChain(blockHeight);
|
maybeUpdateHashChain(blockHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("Duplicates")
|
||||||
@Override
|
@Override
|
||||||
public void onParseBlockChainComplete() {
|
public void onParseBlockChainComplete() {
|
||||||
parseBlockChainComplete = true;
|
parseBlockChainComplete = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue