Skip to content

Commit

Permalink
Merge pull request #1005 from guydavis/develop
Browse files Browse the repository at this point in the history
Chia 2.5.1rc1
  • Loading branch information
guydavis authored Dec 7, 2024
2 parents d5e15dd + ef281e0 commit fc16233
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=develop"
"CHIADOG_BRANCH=dev"
"GIGAHORSE_BRANCH=v2.4.1.giga36"
"GIGAHORSE_BRANCH=v2.4.4.giga36"
"CHIA_BRANCH=main"
"PLOTMAN_BRANCH=compress"
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
build-args: |
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=latest"
"GIGAHORSE_BRANCH=v2.4.1.giga36"
"GIGAHORSE_BRANCH=v2.4.4.giga36"
"CHIA_BRANCH=main"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-gigahorse:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main-mmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
"MACHINARIS_STREAM=latest"
"CHIA_BRANCH=latest"
"MMX_BRANCH=v0.10.6"
"GIGAHORSE_BRANCH=v2.4.1.giga36"
"GIGAHORSE_BRANCH=v2.4.4.giga36"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:latest
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:v${{ github.event.inputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-chia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
"UBUNTU_VER=jammy"
"MACHINARIS_STREAM=test"
"CHIADOG_BRANCH=dev"
"GIGAHORSE_BRANCH=v2.4.1.giga36"
"GIGAHORSE_BRANCH=v2.4.4.giga36"
"CHIA_BRANCH=main"
"PLOTMAN_BRANCH=development"
tags: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
"CHIA_BRANCH=latest"
"PLOTMAN_BRANCH=development"
"MMX_BRANCH=v0.10.6"
"GIGAHORSE_BRANCH=v2.4.1.giga36"
"GIGAHORSE_BRANCH=v2.4.4.giga36"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.4.5] - Unreleased
### Added
- New check to restart a farmer if pooling and no partials have been observed in the last hour. Thanks @aweigold!
### Changed
### Updated
- [Chia](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.5.0) to v2.5.0 - misc improvements, see their release notes.
- [Gigahorse](https://github.com/madMAx43v3r/chia-gigahorse/releases/tag/v2.4.4.giga36) to v2.4.4.giga36.

## [2.4.4] - 2024-10-17
### Added
### Changed
Expand Down
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ A big thanks to all that contributed with dev and test including:
* @Finball
* @chris-merritt
* @priyankub
* @aweigold

## Trademark Notice
CHIA NETWORK INC, CHIA™, the CHIA BLOCKCHAIN™, the CHIA PROTOCOL™, CHIALISP™ and the “leaf Logo” (including the leaf logo alone when it refers to or indicates Chia), are trademarks or registered trademarks of Chia Network, Inc., a Delaware corporation. *There is no affliation between this Machinaris project and the main Chia Network project.*
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.4
2.5.0
27 changes: 25 additions & 2 deletions api/schedules/restart_stuck_farmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
#
# Also, if a limit is optionally set, will trigger a blockchain restart if exceeds
# X GB over a period of time. Useful for old forks which are memory leakers per day.
#
#
# Also, if no partial proofs for pools for a while, restart farmer.
#

import datetime as dt
import math
import os
import subprocess
import traceback

from web import db
from api import app
from common.config import globals
from api.commands import chia_cli, plotman_cli
from common.models import partials as pr
from common.models import plotnfts as pn

RESTART_IF_STUCK_MINUTES = 15
RESTART_IF_STUCK_NO_PARTIALS_MINUTES = 60

last_peak = None
last_peak_time = None
Expand Down Expand Up @@ -90,4 +96,21 @@ def execute():
memory_exceeded_since = None # Not over the limit anymore
except Exception as ex:
app.logger.info("Skipping bloated farmer check due to exception: {0}".format(str(ex)))
traceback.print_exc()
traceback.print_exc()
# If no partial proofs for pools for a while, restart farmer
try:
if not globals.wallet_running(): # Only if wallet is not currently being synced
plotnfts = db.session.query(pn.Plotnft).filter(pn.Plotnft.blockchain == blockchain).all()
is_pooling = False
for plotnft in plotnfts:
if not "SELF_POOLING" in plotnft.details:
is_pooling = True
if not is_pooling:
return # No plotnft currently pooling (not self-pooling), so don't expect any partials
partials = db.session.query(pr.Partial).filter(pr.Partial.blockchain == blockchain, pr.Partial.created_at >= (dt.datetime.now() - dt.timedelta(minutes=RESTART_IF_STUCK_NO_PARTIALS_MINUTES))).all()
if len(partials) == 0:
app.logger.info("***************** RESTARTING FARMER DUE TO NO PARTIALS FOR {} MINUTES!!! ******************".format(RESTART_IF_STUCK_MINUTES))
chia_cli.restart_farmer(blockchain)
return
except Exception as ex:
app.logger.info("Skipping stuck farmer check due to exception: {0}".format(str(ex)))
4 changes: 2 additions & 2 deletions scripts/forks/chia_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ else
echo "Installing Chia CUDA binaries on ${arch_name}..."
cd /tmp
if [[ "${arch_name}" == "x86_64" ]]; then
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.4.4/chia-blockchain-cli_2.4.4-1_amd64.deb
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.5.0-rc1/chia-blockchain-cli_2.5.0-rc1-1_amd64.deb
apt-get install ./chia-blockchain-cli*.deb
else
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.4.4/chia-blockchain-cli_2.4.4-1_arm64.deb
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.5.0-rc1/chia-blockchain-cli_2.5.0-rc1-1_arm64.deb
apt-get install ./chia-blockchain-cli*.deb
fi

Expand Down

0 comments on commit fc16233

Please sign in to comment.