Skip to content

Commit fc16233

Browse files
authored
Merge pull request #1005 from guydavis/develop
Chia 2.5.1rc1
2 parents d5e15dd + ef281e0 commit fc16233

File tree

10 files changed

+42
-10
lines changed

10 files changed

+42
-10
lines changed

.github/workflows/develop-chia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
"UBUNTU_VER=jammy"
9090
"MACHINARIS_STREAM=develop"
9191
"CHIADOG_BRANCH=dev"
92-
"GIGAHORSE_BRANCH=v2.4.1.giga36"
92+
"GIGAHORSE_BRANCH=v2.4.4.giga36"
9393
"CHIA_BRANCH=main"
9494
"PLOTMAN_BRANCH=compress"
9595
tags: |

.github/workflows/main-chia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
build-args: |
9090
"UBUNTU_VER=jammy"
9191
"MACHINARIS_STREAM=latest"
92-
"GIGAHORSE_BRANCH=v2.4.1.giga36"
92+
"GIGAHORSE_BRANCH=v2.4.4.giga36"
9393
"CHIA_BRANCH=main"
9494
tags: |
9595
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-gigahorse:latest

.github/workflows/main-mmx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
"MACHINARIS_STREAM=latest"
4747
"CHIA_BRANCH=latest"
4848
"MMX_BRANCH=v0.10.6"
49-
"GIGAHORSE_BRANCH=v2.4.1.giga36"
49+
"GIGAHORSE_BRANCH=v2.4.4.giga36"
5050
tags: |
5151
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:latest
5252
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:v${{ github.event.inputs.version }}

.github/workflows/test-chia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
"UBUNTU_VER=jammy"
9090
"MACHINARIS_STREAM=test"
9191
"CHIADOG_BRANCH=dev"
92-
"GIGAHORSE_BRANCH=v2.4.1.giga36"
92+
"GIGAHORSE_BRANCH=v2.4.4.giga36"
9393
"CHIA_BRANCH=main"
9494
"PLOTMAN_BRANCH=development"
9595
tags: |

.github/workflows/test-mmx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
"CHIA_BRANCH=latest"
4747
"PLOTMAN_BRANCH=development"
4848
"MMX_BRANCH=v0.10.6"
49-
"GIGAHORSE_BRANCH=v2.4.1.giga36"
49+
"GIGAHORSE_BRANCH=v2.4.4.giga36"
5050
tags: |
5151
${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test
5252
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/machinaris-mmx:test

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
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).
44

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

CREDITS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ A big thanks to all that contributed with dev and test including:
9696
* @Finball
9797
* @chris-merritt
9898
* @priyankub
99+
* @aweigold
99100

100101
## Trademark Notice
101102
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.*

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.4
1+
2.5.0

api/schedules/restart_stuck_farmer.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@
55
#
66
# Also, if a limit is optionally set, will trigger a blockchain restart if exceeds
77
# X GB over a period of time. Useful for old forks which are memory leakers per day.
8-
#
8+
#
9+
# Also, if no partial proofs for pools for a while, restart farmer.
10+
#
911

1012
import datetime as dt
1113
import math
1214
import os
1315
import subprocess
1416
import traceback
1517

18+
from web import db
1619
from api import app
1720
from common.config import globals
1821
from api.commands import chia_cli, plotman_cli
22+
from common.models import partials as pr
23+
from common.models import plotnfts as pn
1924

2025
RESTART_IF_STUCK_MINUTES = 15
26+
RESTART_IF_STUCK_NO_PARTIALS_MINUTES = 60
2127

2228
last_peak = None
2329
last_peak_time = None
@@ -90,4 +96,21 @@ def execute():
9096
memory_exceeded_since = None # Not over the limit anymore
9197
except Exception as ex:
9298
app.logger.info("Skipping bloated farmer check due to exception: {0}".format(str(ex)))
93-
traceback.print_exc()
99+
traceback.print_exc()
100+
# If no partial proofs for pools for a while, restart farmer
101+
try:
102+
if not globals.wallet_running(): # Only if wallet is not currently being synced
103+
plotnfts = db.session.query(pn.Plotnft).filter(pn.Plotnft.blockchain == blockchain).all()
104+
is_pooling = False
105+
for plotnft in plotnfts:
106+
if not "SELF_POOLING" in plotnft.details:
107+
is_pooling = True
108+
if not is_pooling:
109+
return # No plotnft currently pooling (not self-pooling), so don't expect any partials
110+
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()
111+
if len(partials) == 0:
112+
app.logger.info("***************** RESTARTING FARMER DUE TO NO PARTIALS FOR {} MINUTES!!! ******************".format(RESTART_IF_STUCK_MINUTES))
113+
chia_cli.restart_farmer(blockchain)
114+
return
115+
except Exception as ex:
116+
app.logger.info("Skipping stuck farmer check due to exception: {0}".format(str(ex)))

scripts/forks/chia_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ else
2727
echo "Installing Chia CUDA binaries on ${arch_name}..."
2828
cd /tmp
2929
if [[ "${arch_name}" == "x86_64" ]]; then
30-
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.4.4/chia-blockchain-cli_2.4.4-1_amd64.deb
30+
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
3131
apt-get install ./chia-blockchain-cli*.deb
3232
else
33-
curl -sLJO https://github.com/Chia-Network/chia-blockchain/releases/download/2.4.4/chia-blockchain-cli_2.4.4-1_arm64.deb
33+
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
3434
apt-get install ./chia-blockchain-cli*.deb
3535
fi
3636

0 commit comments

Comments
 (0)