Fix bug with missing trade state change for losing peer ater dispute

This commit is contained in:
Manfred Karrer 2016-06-29 19:24:12 +02:00
parent fe727a483b
commit 0214cbbeea

View File

@ -547,6 +547,7 @@ public class DisputeManager {
private void onDisputedPayoutTxMessage(PeerPublishedPayoutTxMessage peerPublishedPayoutTxMessage) {
Transaction transaction = tradeWalletService.addTransactionToWallet(peerPublishedPayoutTxMessage.transaction);
findOwnDispute(peerPublishedPayoutTxMessage.tradeId).ifPresent(dispute -> dispute.setDisputePayoutTxId(transaction.getHashAsString()));
tradeManager.closeDisputedTrade(peerPublishedPayoutTxMessage.tradeId);
}