get or create maker payout address entry on trade init #978

This commit is contained in:
woodser 2024-06-04 08:12:23 -04:00
parent 99bb29e0b0
commit dd28c237c9

View file

@ -138,7 +138,7 @@ public class MakerSendInitTradeRequestToArbitrator extends TradeTask {
trade.getSelf().getReserveTxHash(), trade.getSelf().getReserveTxHash(),
trade.getSelf().getReserveTxHex(), trade.getSelf().getReserveTxHex(),
trade.getSelf().getReserveTxKey(), trade.getSelf().getReserveTxKey(),
model.getXmrWalletService().getAddressEntry(trade.getOffer().getId(), XmrAddressEntry.Context.TRADE_PAYOUT).get().getAddressString()); model.getXmrWalletService().getOrCreateAddressEntry(trade.getOffer().getId(), XmrAddressEntry.Context.TRADE_PAYOUT).getAddressString());
// send request to arbitrator // send request to arbitrator
log.info("Sending {} with offerId {} and uid {} to arbitrator {}", arbitratorRequest.getClass().getSimpleName(), arbitratorRequest.getOfferId(), arbitratorRequest.getUid(), trade.getArbitrator().getNodeAddress()); log.info("Sending {} with offerId {} and uid {} to arbitrator {}", arbitratorRequest.getClass().getSimpleName(), arbitratorRequest.getOfferId(), arbitratorRequest.getUid(), trade.getArbitrator().getNodeAddress());