mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Improve error logs
This commit is contained in:
parent
1b17109b6b
commit
a7be0c4d31
1 changed files with 7 additions and 4 deletions
|
@ -124,15 +124,18 @@ public class VoteResultConsensus {
|
|||
blindVoteTxId + " not found.");
|
||||
Tx blindVoteTx = optionalBlindVoteTx.get();
|
||||
Optional<TxType> optionalTxType = daoStateService.getOptionalTxType(blindVoteTx.getId());
|
||||
checkArgument(optionalTxType.isPresent(), "optionalTxType must be present");
|
||||
checkArgument(optionalTxType.isPresent(), "optionalTxType must be present" +
|
||||
". blindVoteTxId=" + blindVoteTx.getId());
|
||||
checkArgument(optionalTxType.get() == TxType.BLIND_VOTE,
|
||||
"blindVoteTx must have type BLIND_VOTE");
|
||||
"blindVoteTx must have type BLIND_VOTE but is " + optionalTxType.get() +
|
||||
". blindVoteTxId=" + blindVoteTx.getId());
|
||||
checkArgument(periodService.isTxInCorrectCycle(blindVoteTx.getBlockHeight(), chainHeight),
|
||||
"blindVoteTx is not in correct cycle. blindVoteTx.getBlockHeight()="
|
||||
+ blindVoteTx.getBlockHeight());
|
||||
+ blindVoteTx.getBlockHeight() + ". chainHeight=" + chainHeight +
|
||||
". blindVoteTxId=" + blindVoteTx.getId());
|
||||
checkArgument(periodService.isInPhase(blindVoteTx.getBlockHeight(), DaoPhase.Phase.BLIND_VOTE),
|
||||
"blindVoteTx is not in BLIND_VOTE phase. blindVoteTx.getBlockHeight()="
|
||||
+ blindVoteTx.getBlockHeight());
|
||||
+ blindVoteTx.getBlockHeight() + ". blindVoteTxId=" + blindVoteTx.getId());
|
||||
return blindVoteTx;
|
||||
} catch (Throwable t) {
|
||||
throw new VoteResultException.ValidationException(t);
|
||||
|
|
Loading…
Add table
Reference in a new issue