From af939e66e0b89cb6137b689344b4bc2da874e0cf Mon Sep 17 00:00:00 2001 From: Florian Reimair Date: Tue, 4 Feb 2020 15:00:35 +0100 Subject: [PATCH] Remove unused uid in pricefeed service Bisq frequently (once per minute) queries our price nodes for up-to-date price information. It does so by HTTP GET request. However, it provided a UID via the "User-Agent" HTTP header field. This UID has been a random number which changed everytime Bisq got started up. This UID has never been used. Thus, remove it. --- core/src/main/java/bisq/core/provider/price/PriceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/provider/price/PriceProvider.java b/core/src/main/java/bisq/core/provider/price/PriceProvider.java index 78532c728a..dcb68cc024 100644 --- a/core/src/main/java/bisq/core/provider/price/PriceProvider.java +++ b/core/src/main/java/bisq/core/provider/price/PriceProvider.java @@ -48,7 +48,7 @@ public class PriceProvider extends HttpClientProvider { public Tuple2, Map> getAll() throws IOException { Map marketPriceMap = new HashMap<>(); String json = httpClient.requestWithGET("getAllMarketPrices", "User-Agent", "bisq/" - + Version.VERSION + ", uid:" + httpClient.getUid()); + + Version.VERSION); LinkedTreeMap map = new Gson().fromJson(json, LinkedTreeMap.class); Map tsMap = new HashMap<>();