[bisq-network/bisq] Give core api a simple way to verify init status (#4534)

Stan notifications at github.com
Thu Sep 17 16:37:31 UTC 2020


This change adds a new `StatusCheck` class, for use by any `Core*Service` instance needing to verify the server is ready to perform trading related functions.

Currently implements one method, `verifyCanTrade`, that throws an IllegalStateException with a CLI friendly error message if any of the following checks fail:

- the p2p network is bootstrapped
- the block chain sync is complete
- the minimum # of peers are connected
- the wallet is available
- the wallet balance is available (not null)

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Give core api a simple way to verify init status

-- File Changes --

    A core/src/main/java/bisq/core/api/StatusCheck.java (60)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/4534.patch
https://github.com/bisq-network/bisq/pull/4534.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/4534
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200917/cad82602/attachment-0001.html>


More information about the bisq-github mailing list