Skip to content

Commit

Permalink
Update chia to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed May 2, 2024
1 parent 6951e9d commit 81ec38d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Changed

- Update `chia` to 2.3.0.

## [1.22.6] - 2024-04-27

### Changed
Expand Down
1 change: 1 addition & 0 deletions foxy_farmer/config/foxy_chia_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ def patch_configs(
.patch_value("wallet.connect_to_unknown_peers", True)
# Ensure we do not filter out PlotNFT creation and state changes
.patch_value("wallet.xch_spam_amount", 0)
.patch_value("wallet.use_delta_sync", True)
)

if backend == Backend.Gigahorse:
Expand Down
4 changes: 2 additions & 2 deletions foxy_farmer/environment/service/service_factory.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from pathlib import Path
from typing import Dict, Optional

from chia.cmds.init_funcs import chia_full_version_str
from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.daemon.server import daemon_launch_lock_path, log, WebSocketServer
from chia.server.outbound_message import NodeType
from chia.server.start_farmer import create_farmer_service
from chia.server.start_harvester import create_harvester_service
from chia.server.start_wallet import create_wallet_service
from chia.types.aliases import FarmerService, WalletService, HarvesterService
from chia.util.chia_version import chia_short_version
from chia.util.config import get_unresolved_peer_infos
from chia.util.lock import Lockfile, LockfileError

Expand All @@ -28,7 +28,7 @@ def make_daemon(self) -> Optional[WebSocketServer]:
ca_key_path = self._root_path / self._config["private_ssl_ca"]["key"]
try:
with Lockfile.create(daemon_launch_lock_path(self._root_path), timeout=1):
log.info(f"chia-blockchain version: {chia_full_version_str()}")
log.info(f"chia-blockchain version: {chia_short_version()}")

ws_server = WebSocketServer(
self._root_path,
Expand Down
1 change: 0 additions & 1 deletion foxy_farmer/pool/pool_joiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def __init__(self, foxy_root: Path, config: Dict[str, Any], foxy_config: FoxyCon
self._foxy_config = foxy_config

async def join_pool(self, fee: uint64) -> bool:
did_update = False
async with run_wallet(root_path=self._foxy_root, config=self._config) as wallet_rpc:
# Select wallet to sync
await get_wallet(self._foxy_root, wallet_rpc, fingerprint=None)
Expand Down
4 changes: 2 additions & 2 deletions foxy_farmer/wallet/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ async def await_transaction_broadcasted(
start = time()
while time() - start < 15:
await sleep(0.5)
tx = await wallet_client.get_transaction(1, tx_record.name)
tx = await wallet_client.get_transaction(tx_record.name)
if len(tx.sent_to) > 0:
return tx_record


async def await_transaction_confirmed(transaction_record: TransactionRecord, wallet_client: WalletRpcClient) -> None:
while not transaction_record.confirmed:
await sleep(0.5)
transaction_record = await wallet_client.get_transaction(1, transaction_record.name)
transaction_record = await wallet_client.get_transaction(transaction_record.name)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
dependencies = [
"aiohttp>=3.9.1",
"aioudp==1.0.1",
"chia-blockchain@git+https://github.com/foxypool/chia-blockchain@2.2.1-og-1.6.1#egg=chia-blockchain",
"chia-blockchain@git+https://github.com/foxypool/chia-blockchain@2.3.0-og-1.6.1#egg=chia-blockchain",
"click>=8.1.3",
"colorlog>=6.7.0",
"humanize==4.9.0",
Expand Down

0 comments on commit 81ec38d

Please sign in to comment.