mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-03 11:06:45 -04:00
Add logs
This commit is contained in:
parent
1ca97369aa
commit
333c367ded
1 changed files with 7 additions and 0 deletions
|
@ -174,6 +174,9 @@ public class MessageFacade implements MessageBroker {
|
|||
try {
|
||||
final Data offerData = new Data(offer);
|
||||
|
||||
log.trace("Add offer to DHT requested. Added data: [locationKey: " + locationKey +
|
||||
", value: " + offerData + "]");
|
||||
|
||||
// the offer is default 30 days valid
|
||||
int defaultOfferTTL = 30 * 24 * 60 * 60;
|
||||
offerData.ttlSeconds(defaultOfferTTL);
|
||||
|
@ -234,6 +237,10 @@ public class MessageFacade implements MessageBroker {
|
|||
Number160 locationKey = Number160.createHash(offer.getCurrency().getCurrencyCode());
|
||||
try {
|
||||
final Data offerData = new Data(offer);
|
||||
|
||||
log.trace("Remove offer from DHT requested. Removed data: [locationKey: " + locationKey +
|
||||
", value: " + offerData + "]");
|
||||
|
||||
FutureRemove futureRemove = p2pNode.removeFromDataMap(locationKey, offerData);
|
||||
futureRemove.addListener(new BaseFutureListener<BaseFuture>() {
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue