Fix bug with missing check for pending tx

This commit is contained in:
Manfred Karrer 2016-04-08 20:38:57 +02:00
parent e6463f5f86
commit 85fc0ca2cd

View File

@ -81,7 +81,7 @@ public class BroadcastAfterLockTime extends TradeTask {
TransactionConfidence.ConfidenceType confidenceType = payoutTx.getConfidence().getConfidenceType();
log.debug("payoutTx confidenceType:" + confidenceType);
if (confidenceType.equals(TransactionConfidence.ConfidenceType.BUILDING)) {
if (confidenceType.equals(TransactionConfidence.ConfidenceType.BUILDING) || confidenceType.equals(TransactionConfidence.ConfidenceType.PENDING)) {
log.debug("payoutTx already building:" + payoutTx);
trade.setState(Trade.State.PAYOUT_BROAD_CASTED);
complete();