mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
remove signed offers with common key images
This commit is contained in:
parent
9c2308f7a3
commit
f78a9cd907
@ -764,6 +764,13 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||
private void addSignedOffer(SignedOffer signedOffer) {
|
||||
log.info("Adding SignedOffer offer for offer {}", signedOffer.getOfferId());
|
||||
synchronized (signedOffers) {
|
||||
|
||||
// remove signed offers with common key images
|
||||
for (String keyImage : signedOffer.getReserveTxKeyImages()) {
|
||||
removeSignedOffers(keyImage);
|
||||
}
|
||||
|
||||
// add new signed offer
|
||||
signedOffers.add(signedOffer);
|
||||
signedOfferKeyImagePoller.addKeyImages(signedOffer.getReserveTxKeyImages());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user