mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Merge pull request #2928 from a123b/fix-market-price-disagreement-ackmessage
Use tempTradingPeerNodeAddress if the trade doesn't have a trading peer set yet
This commit is contained in:
commit
e33956c142
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ public abstract class TradeProtocol {
|
|||
tradeId,
|
||||
result,
|
||||
errorMessage);
|
||||
final NodeAddress peersNodeAddress = trade.getTradingPeerNodeAddress();
|
||||
// If there was an error during offer verification, the tradingPeerNodeAddress of the trade might not be set yet.
|
||||
// We can find the peer's node address in the processModel's tempTradingPeerNodeAddress in that case.
|
||||
final NodeAddress peersNodeAddress = trade.getTradingPeerNodeAddress() != null ? trade.getTradingPeerNodeAddress() : processModel.getTempTradingPeerNodeAddress();
|
||||
log.info("Send AckMessage for {} to peer {}. tradeId={}, sourceUid={}",
|
||||
ackMessage.getSourceMsgClassName(), peersNodeAddress, tradeId, sourceUid);
|
||||
String finalSourceUid = sourceUid;
|
||||
|
|
Loading…
Add table
Reference in a new issue