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

241olderchiaposwjb #18269

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build-macos-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ jobs:
run: |
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg -o ${{ github.workspace }}/build_scripts/final_installer/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent --webseed https://download.chia.net/install/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg
ls ${{ github.workspace }}/build_scripts/final_installer/
gh release upload --repo ${{ github.repository }} $RELEASE_TAG ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent
gh release upload --repo ${{ github.repository }} $RELEASE_TAG ${{ github.workspace }}/build_scripts/final_installer/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent

- name: Upload Dev Installer
if: steps.check_secrets.outputs.HAS_AWS_SECRET && github.ref == 'refs/heads/main'
Expand All @@ -355,9 +355,9 @@ jobs:
- name: Upload Release Files
if: steps.check_secrets.outputs.HAS_AWS_SECRET && env.FULL_RELEASE == 'true'
run: |
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg s3://download.chia.net/install/
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.sha256 s3://download.chia.net/install/
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent s3://download.chia.net/torrents/
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg s3://download.chia.net/install/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.sha256 s3://download.chia.net/install/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.sha256
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent s3://download.chia.net/torrents/Chia-${{ env.CHIA_INSTALLER_VERSION }}${{ matrix.os.file-suffix }}.dmg.torrent

- name: Upload release artifacts
if: env.RELEASE == 'true'
Expand Down
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,84 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project does not yet adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
for setuptools_scm/PEP 440 reasons.

## 2.4.1 Chia blockchain 2024-06-25

## What's Changed
### Fixed
* Fixed light wallet (wallet only) syncing issues introduced in 2.4.0

### Known Issues
* A breaking backwards compatibility issue was introduced in 2.4.0 in the daemon RPC call `add_private_key`. We expect to resolve this in a future release.
* You cannot import or use a 12-word mnemonic key with 2.4.0 or 2.4.1. To import and use a 12-word mnemonic key we recommend you use 2.3.1. This will be resolved in a future release

### Deprecated
macOS 11 (Big Sur) is deprecated. This release (2.4.1) will be the last release to support macOS 11

## 2.4.0 Chia blockchain 2024-06-20

## What's Changed
### Added
* Soft fork 5: disallow infinity G1 points as public keys in AGG_SIG_* conditions
* DL: Added support for updating multiple datastores in a single batch update
* Add unfinished block to state change event (thanks @felixbrucker)
* CHIP-0026 Mempool Updates
* Preliminary support for observer mode. Ability to add public keys via CLI

### Changed
* Remove `tx_records` from `dl_update_multiple` RPC (breaking change)
* DL: optimizations for autoinsert and upsert
* Increase farmer fill rate to 70%
* Use Rust types for `RecentChainData`, `ProofBlockHeader` and `WeightProof`
* Use Rust version of `MerkleSet`
* Remove unused files
* Make a couple of DAOWallet methods return lists of transaction records
* Simplify `MerkleSet` by making it immutable
* Add ability to profile the farmer process
* Remove unused current_inner from PoolState
* Optimize `launcher_id_to_p2_puzzle_hash()`
* Add genesis challenge to `get_network_info` RPC
* Puzzle hash optimizations
* Optimize key derivation in the wallet
* Add optional trusted CIDR list
* Make `BLSCache` a proper class
* Split capabilities for each service
* Use kv compressed in DL batch update
* Updated gui to `electron 30.0.9`
* Bump `chia_rs` to `0.9.0` and update G1Element handling
* Bump `boto3` to `1.34.114`
* Bump `chiabip158` to `1.5.1`
* Bump `clvm` to `0.9.10`
* Bump `aiohttp` to `3.9.4`
* Bump `filelock` to `3.14.0`
* Bump `importlib-resources` to `6.4.0`
* Bump `keyring` to `25.1.0`
* Bump `dnspython` to `2.6.1`
* Bump `typing-extensions` to `4.11.0`,
* Bump `packaging` to `24.0`
* Bump `hsms` to `0.3.1`,

### Fixed
* Add bytes type to `DerivationRecord.pubkey`
* Do not return unexpected coins from `get_coin_state`
* Fix memo plotid
* Filter out duplicate coins returned by `RequestPuzzleState`
* fix confusion between prompt and don't prompt in the plotnft CLI
* drop deprecated `authentication_public_key` from pool config
* Fixed some typos (thanks @wersfeds)
* Make sure to use no more than 61 cpus on windows (fixes #17967)
* Handle reorgs in data layer wallet
* Modify `VerifiedCredential.launch` to handle multiple source coins
* Add tx_config and extra_conditions to DID creation endpoint
* DL: Return exception and error from `get_kv_diff` when either of the hashes has no data
* Link trade cancellations with announcements
* Add coin id index to coin state batching
* Remove homebrew rpaths from `_ssl.cpython.so` on macOS during build (fixes #18099)
* Aligned `lerna` and `nx` versions
* Set permissions in DEB `postinst.sh` for chrome-sandbox (fixes #17956)

### Deprecated
macOS 11 (Big Sur) is deprecated. This release (2.4.0) will be the last release to support macOS 11

## 2.3.1 Chia blockchain 2024-04-28

### Added
Expand Down
47 changes: 43 additions & 4 deletions chia/types/weight_proof.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,50 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import List

import chia_rs

ProofBlockHeader = chia_rs.ProofBlockHeader
RecentChainData = chia_rs.RecentChainData
SubEpochChallengeSegment = chia_rs.SubEpochChallengeSegment
from chia.types.blockchain_format.reward_chain_block import RewardChainBlock
from chia.types.end_of_slot_bundle import EndOfSubSlotBundle
from chia.types.header_block import HeaderBlock
from chia.util.streamable import Streamable, streamable

SubEpochData = chia_rs.SubEpochData

# number of challenge blocks
# Average iters for challenge blocks
# |--A-R----R-------R--------R------R----R----------R-----R--R---| Honest difficulty 1000
# 0.16

# compute total reward chain blocks
# |----------------------------A---------------------------------| Attackers chain 1000
# 0.48
# total number of challenge blocks == total number of reward chain blocks


SubEpochChallengeSegment = chia_rs.SubEpochChallengeSegment
SubEpochSegments = chia_rs.SubEpochSegments
SubSlotData = chia_rs.SubSlotData
WeightProof = chia_rs.WeightProof


@streamable
@dataclass(frozen=True)
# this is used only for serialization to database
class RecentChainData(Streamable):
recent_chain_data: List[HeaderBlock]


@streamable
@dataclass(frozen=True)
class ProofBlockHeader(Streamable):
finished_sub_slots: List[EndOfSubSlotBundle]
reward_chain_block: RewardChainBlock


@streamable
@dataclass(frozen=True)
class WeightProof(Streamable):
sub_epochs: List[SubEpochData]
sub_epoch_segments: List[SubEpochChallengeSegment] # sampled sub epoch
recent_chain_data: List[HeaderBlock]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"boto3==1.34.114", # AWS S3 for DL s3 plugin
"chiavdf==1.1.4", # timelord and vdf verification
"chiabip158==1.5.1", # bip158-style wallet filters
"chiapos==2.0.4", # proof of space
"chiapos==2.0.3", # proof of space
"clvm==0.9.10",
"clvm_tools==0.4.9", # Currying, Program.to, other conveniences
"chia_rs==0.9.0",
Expand Down
Loading