Skip to content

Commit

Permalink
Remove unused uid in fee provider service
Browse files Browse the repository at this point in the history
Bisq frequently (once per minute) queries our price nodes for up-to-date
fee 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 gets started up.

This UID has never been used. Thus, remove it.
  • Loading branch information
freimair committed Feb 27, 2020
1 parent dbecc0a commit edcc833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/bisq/core/provider/fee/FeeProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public FeeProvider(PriceNodeHttpClient httpClient, ProvidersRepository providers
}

public Tuple2<Map<String, Long>, Map<String, Long>> getFees() throws IOException {
String json = httpClient.requestWithGET("getFees", "User-Agent", "bisq/" + Version.VERSION + ", uid:" + httpClient.getUid());
String json = httpClient.requestWithGET("getFees", "User-Agent", "bisq/" + Version.VERSION);

LinkedTreeMap<?, ?> linkedTreeMap = new Gson().fromJson(json, LinkedTreeMap.class);
Map<String, Long> tsMap = new HashMap<>();
Expand Down

0 comments on commit edcc833

Please sign in to comment.