mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-20 12:54:37 -04:00
separate wallet addresses
This commit is contained in:
parent
24fdb06a90
commit
205259bee9
34 changed files with 822 additions and 366 deletions
|
@ -211,7 +211,7 @@ public class MessageFacade
|
|||
public void addOffer(Offer offer) throws IOException
|
||||
{
|
||||
Number160 locationKey = Number160.createHash(offer.getCurrency().getCurrencyCode());
|
||||
final Number160 contentKey = Number160.createHash(offer.getUID());
|
||||
final Number160 contentKey = Number160.createHash(offer.getId());
|
||||
final Data offerData = new Data(offer);
|
||||
//offerData.setTTLSeconds(5);
|
||||
final FutureDHT addFuture = myPeer.put(locationKey).setData(contentKey, offerData).start();
|
||||
|
@ -267,7 +267,7 @@ public class MessageFacade
|
|||
public void removeOffer(Offer offer) throws IOException
|
||||
{
|
||||
Number160 locationKey = Number160.createHash(offer.getCurrency().getCurrencyCode());
|
||||
Number160 contentKey = Number160.createHash(offer.getUID());
|
||||
Number160 contentKey = Number160.createHash(offer.getId());
|
||||
log.debug("removeOffer");
|
||||
FutureDHT removeFuture = myPeer.remove(locationKey).setReturnResults().setContentKey(contentKey).start();
|
||||
removeFuture.addListener(new BaseFutureAdapter<BaseFuture>()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue