[bisq-network/bisq] Use global price data instead of local (#3649)

Bisq2People notifications at github.com
Wed Nov 20 22:50:45 UTC 2019


Fixes #3527

--Changed timestamp from Local to Global (shouldn't matter).
--Changed the component order of Local and Global to give global data precedence over local. 
   Matters according to the base class comment below.

>From pricenode/src/main/java/bisq/price/spot/ExchangeRateProvider.java

Abstract base class for providers of bitcoin ExchangeRate data. Implementations are marked with the org.springframework.stereotype.Component annotation in order to be discovered via classpath scanning. Implementations are also marked with the org.springframework.core.annotation.Order annotation to determine their precedence over each other in the case of two or more services returning exchange rate data for the same currency pair. In such cases, results from the provider with the higher order value will taking precedence over the provider with a lower value, presuming that such providers are being iterated over in an ordered list.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/3649

-- Commit Summary --

  * Update BitcoinAverage.java
  * Update ExchangeRateService.java

-- File Changes --

    M pricenode/src/main/java/bisq/price/spot/ExchangeRateService.java (2)
    M pricenode/src/main/java/bisq/price/spot/providers/BitcoinAverage.java (17)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/3649.patch
https://github.com/bisq-network/bisq/pull/3649.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3649
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191120/1c878ec3/attachment.html>


More information about the bisq-github mailing list