mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 07:02:24 -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 {
|
try {
|
||||||
final Data offerData = new Data(offer);
|
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
|
// the offer is default 30 days valid
|
||||||
int defaultOfferTTL = 30 * 24 * 60 * 60;
|
int defaultOfferTTL = 30 * 24 * 60 * 60;
|
||||||
offerData.ttlSeconds(defaultOfferTTL);
|
offerData.ttlSeconds(defaultOfferTTL);
|
||||||
|
@ -234,6 +237,10 @@ public class MessageFacade implements MessageBroker {
|
||||||
Number160 locationKey = Number160.createHash(offer.getCurrency().getCurrencyCode());
|
Number160 locationKey = Number160.createHash(offer.getCurrency().getCurrencyCode());
|
||||||
try {
|
try {
|
||||||
final Data offerData = new Data(offer);
|
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 futureRemove = p2pNode.removeFromDataMap(locationKey, offerData);
|
||||||
futureRemove.addListener(new BaseFutureListener<BaseFuture>() {
|
futureRemove.addListener(new BaseFutureListener<BaseFuture>() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue