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

Give core api a simple way to verify init status #4534

Merged
merged 1 commit into from
Sep 22, 2020

Commits on Sep 17, 2020

  1. Give core api a simple way to verify init status

    This change adds a new StatusCheck class, for use by Core*Service
    instances 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)
    ghubstan committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    f8213f2 View commit details
    Browse the repository at this point in the history