# Update notices

Source: https://sl0ptiminer.com/wiki/updates/

The miner tells you when a version with a security fix, a network change or a fault fix is out. It never downloads or installs anything itself: you decide whether and when to update.

| | |
|---|---|
| When it checks | 60 seconds after the pool connection is up, then once a day |
| What it fetches | one signed file, `latest.json`, and its signature, from `sl0ptiminer.com` and from `github.com` |
| What it sends | the file's address and the program's name. Nothing about your machine: no version, no identifier. The comparison is made on your machine |
| What it trusts | only a file signed with the [release key](https://sl0ptiminer.com/wiki/verify/) |
| When the check fails | mining goes on and nothing is shown; the miner tries again in an hour. After 30 days without a verified file, mining stops: [contact with the update hosts](#contact) |

The notice ends with the way to update on your system: [how to update](https://sl0ptiminer.com/wiki/install/#update).

## Options

| Option | Effect |
|---|---|
| `--update-notices all` | News of every new version, not only security, network and fault fixes. |
| `--no-update-check` | No news of new versions. The signed file is still fetched once a day, for the minimum supported version and the 30-day contact rule. |

## The minimum supported version

When a version has a serious fault in security or in the developer fee, the signed file names a minimum supported version and the reason. A miner older than it:

1. says so at once, with the reason and the time mining stops;
2. reminds you once a day;
3. stops mining 7 days after this machine first saw the notice.

After the stop the program stays up and shows the reason, so a service manager or HiveOS does not restart it in a loop. With `--duration` it ends instead. Mining starts again when a version at or above the minimum runs.

`--no-update-check` does not turn this off. The miner keeps the highest minimum it has seen in its [settings file](https://sl0ptiminer.com/wiki/screen/#keys), so an older file cannot lower it.

## Contact with the update hosts

The miner must keep receiving its update file. When no update file signed with the release key has arrived for 30 days, mining stops:

1. The rule is judged only after a check in this run found no file. A machine that was off for weeks mines until its first check, 60 seconds after the pool connection is up.
2. From 7 days before the stop the miner says so once a day, with the time mining stops.
3. After 30 days it stops mining. As at the minimum version, the program stays up and shows the reason; with `--duration` it ends instead.
4. A verified file that arrives later clears the warning. After a stop the program then ends, so that the next start mines.

`--no-update-check` does not turn this off. The file comes from `sl0ptiminer.com` (also `www.sl0ptiminer.com`) or from `github.com`, which sends it from `objects.githubusercontent.com` or `release-assets.githubusercontent.com`; one of the two sources is enough. A firewall or DNS filter must let the machine reach them on TCP port 443. The miner keeps the time of the last verified file in its [settings file](https://sl0ptiminer.com/wiki/screen/#keys).

## Messages

### "Sl0ptiminer ... is available. You run ..."

A note: a newer version is out, and mining goes on. The words after the version say why you hear of it: "with a security fix", "for a network change" or "with a fault fix". Without such words it is a new version you asked to hear of with `--update-notices all`.

### "Sl0ptiminer ... is below the minimum supported version ... Mining stops on ... UTC unless you update."

Your version has a serious fault, named in the line. Update before the time shown and nothing stops. The line comes again once a day, starting with "Reminder:", and the status row shows "below minimum version ... · mining stops ... UTC". On HiveOS the line also goes to the dashboard.

### "Mining stopped: Sl0ptiminer ... is below the minimum supported version ..."

The 7 days have passed, so the miner mines nothing and its hashrate is 0. The program stays up on purpose and the status row shows "mining stopped · below minimum version ... · update". Update as the line says: mining starts again when the new version runs.

### "Sl0ptiminer ... meets the minimum supported version ... Mining runs normally."

A note after an update, and there is nothing to do.

### "Sl0ptiminer has received no verified update file since ... UTC. Mining stops on ... UTC unless it receives one from sl0ptiminer.com or github.com."

No update file signed with the release key has arrived for more than 23 days. Let the machine reach the [update hosts](#contact). The line comes again once a day, starting with "Reminder:", and the status row shows "no update information · mining stops ... UTC".

### "Mining stopped: Sl0ptiminer has received no verified update file since ... UTC (30 days). ..."

The miner mines nothing and its hashrate is 0; the status row shows "mining stopped · no update information for 30 days". Let the machine reach the [update hosts](#contact). A program that stays up ends by itself when a verified file arrives; start it again to mine.

### "Verified update file received; the update-contact warning has cleared." or "... the update-contact stop has cleared."

A note, and there is nothing to do. The same line without its first part means the warning no longer applies.

### "Sl0ptiminer ends now; start it again to mine."

The stop no longer applies, and the program ends so that its next start mines. Start it again, or let your service manager or mining system do it.

### "Cannot save when update information last arrived (...). A restart counts the 30 days from the last saved time, or from the start."

The miner could not write its [settings file](https://sl0ptiminer.com/wiki/screen/#keys). The brackets name why. Check that the user account that runs the miner can write to its configuration folder.

### "Cannot save the minimum supported version (...). A restart uses the saved date; if no date was saved, the 7 days start again when it is detected."

The miner could not write its [settings file](https://sl0ptiminer.com/wiki/screen/#keys). The brackets name why. A date it saved before still counts after a restart; without one, the 7 days start again each time the miner sees the notice. Check that the user account that runs the miner can write to its configuration folder.
