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

Wait for storage server #874

Merged
merged 3 commits into from
Oct 8, 2019
Merged

Commits on Oct 8, 2019

  1. Fix elapsed time in storage server warning message

    This was passing the time value rather than the number of seconds so
    basically always printed "a long time" instead of the elapsed time.
    jagerman committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    e5a0898 View commit details
    Browse the repository at this point in the history
  2. Removed pre-HF12 code

    jagerman committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    bc3a777 View commit details
    Browse the repository at this point in the history
  3. Wait for storage server before sending proof

    On startup we send a proof immediately, but this is misleading to the
    operator - they may see a proof broadcast over the network suggesting
    everything is good even when the storage server is still down.  This
    makes lokid wait for a first ping before the first proof so that the
    user doesn't get mislead.
    
    It also adds the storage server last ping into the `lokid status`
    message, such as:
    
        Height: 375634/375634 (100.0%) on mainnet, not mining, net hash 63.00 MH/s, v12, up to date, 1(out)+0(in) connections, uptime 0d 0h 0m 4s
        SN: f4558f60b1c4075e469a15411f12d5a747c1c62b44bcbc8523f1a90becc80475 not registered, s.server: NO PING RECEIVED
    
    or:
    
        Height: 375663/375663 (100.0%) on mainnet, not mining, net hash 76.17 MH/s, v12, up to date, 1(out)+0(in) connections, uptime 0d 0h 0m 32s
        SN: f4558f60b1c4075e469a15411f12d5a747c1c62b44bcbc8523f1a90becc80475 not registered, s.server: last ping 11 seconds ago
    jagerman committed Oct 8, 2019
    Configuration menu
    Copy the full SHA
    5630a88 View commit details
    Browse the repository at this point in the history