[bisq-network/bisq] Add mempool fees to PriceServer getAllMarketPrices endpoint (#5553)

jmacxx notifications at github.com
Fri Jun 4 20:43:12 CEST 2021

As mentioned in #5509, Bisq client has two connections to price nodes: FeeService and PriceFeedService.  We can optimize Bisq to use PriceFeedService and obtain both sets of information together which provides the following benefits:

- Bisq will use one less network connection and make fewer network API calls,
- corrects the lack of failback mechanism in FeeService,
- increases the frequency of mempool fee updates 5-fold, at no cost.

This change is backwards compatible after PriceNodes are updated:

- old clients can still process `getAllMarketPrices` and `getFees` as before.
- new clients can process the additional mempool fee information returned in the `getAllMarketPrices` data set.


This change adds two fields: `bitcoinFeesTs` and `bitcoinFeeInfo` to `getAllMarketPrices`:


This PR only modifies the PriceNode.  The idea is to give time to get the PriceNodes upgraded before the Bisq client is rolled out (as noted already, the PriceNode upgrade is compatible with existing Bisq clients).  

A separate PR will be created for Bisq clients to make use of this PriceNode optimization.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * add mempool fees to the getAllMarketPrices endpoint

-- File Changes --

    M common/src/main/java/bisq/common/config/Config.java (1)
    M pricenode/src/main/java/bisq/price/mining/FeeRateService.java (1)
    M pricenode/src/main/java/bisq/price/spot/ExchangeRateController.java (23)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210604/a841db83/attachment.htm>

More information about the bisq-github mailing list