Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor & simplify fee service. #6931

Merged
merged 3 commits into from Nov 15, 2023

Conversation

ghost
Copy link

@ghost ghost commented Oct 18, 2023

  • Use fees retrieved from getAllMarketPrices. Results in fee and price updated at the same rate, each minute.
  • Saves resources: one socket connection and one service threadpool are eliminated.
  • Failover to new node works (previously did not).
  • Uses POJO data transfer object instead of parsing Json in a tree.
  • Code footprint is reduced.
  • For now the FeeService interface remains unchanged to make this PR easy to read; a further PR could clean up client calls as an async/blocking interface is not needed. (-> 6b42bb9)

Fixes #5509

jmacxx added 2 commits October 18, 2023 15:10
Use fees retrieved from getAllMarketPrices.
More frequent fee updates (was 5 minutes, now 1).
Saves one socket connection.
Saves one threadpool.
Service failover to new node works (previously did not).
Uses POJO data transfer object instead of parsing Json in a tree.
Code footprint is reduced.
Clients no longer need to request fee updates.
See issue 5509.
Obsolete async requests removed, replaced by getTxFee().
Copy link
Contributor

@alvasw alvasw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!! :-)

Nit

core/src/main/java/bisq/core/api/CoreApi.java Outdated Show resolved Hide resolved
@ghost ghost requested a review from alvasw November 14, 2023 03:26
Copy link
Contributor

@alejandrogarcia83 alejandrogarcia83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@alejandrogarcia83 alejandrogarcia83 merged commit dd3f134 into bisq-network:master Nov 15, 2023
3 checks passed
@alejandrogarcia83 alejandrogarcia83 added this to the v1.9.15 milestone Nov 15, 2023
@ghost ghost mentioned this pull request Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When chosen fee provider is down, Bisq should failover to a new one
2 participants