Bug fix: we created a new address entry which causes bugs in case a user takes an offer again which failed in an early preparation state before.

This commit is contained in:
chimp1984 2020-09-25 20:09:31 -05:00
parent 3987f9cd5a
commit dceba6d350
No known key found for this signature in database
GPG key ID: 9801B4EC591F90E3

View file

@ -53,8 +53,8 @@ public class CreateTakerFeeTx extends TradeTask {
// appear as unused and therefore selected for the outputs for the MS tx.
// That would cause incorrect display of the balance as
// the change output would be considered as not available balance (part of the locked trade amount).
walletService.getNewAddressEntry(id, AddressEntry.Context.MULTI_SIG);
walletService.getNewAddressEntry(id, AddressEntry.Context.TRADE_PAYOUT);
walletService.getOrCreateAddressEntry(id, AddressEntry.Context.MULTI_SIG);
walletService.getOrCreateAddressEntry(id, AddressEntry.Context.TRADE_PAYOUT);
AddressEntry fundingAddressEntry = walletService.getOrCreateAddressEntry(id, AddressEntry.Context.OFFER_FUNDING);
AddressEntry reservedForTradeAddressEntry = walletService.getOrCreateAddressEntry(id, AddressEntry.Context.RESERVED_FOR_TRADE);