12184 Commits
Author SHA1 Message Date
b982196873 Update CHANGELOG.md (#17642)
* Update CHANGELOG.md

* Fix pre-commit markdown lint

---------

Co-authored-by: Starttoaster <b.butler@chia.net>
2.2.1
2024-03-05 12:42:18 -08:00
Arvid NorbergandGitHub 8118629e2a address issue in looking up cached block generator (#17622) 2024-03-04 10:36:04 -08:00
Roy NatianandGitHub 98cf7b472c Updating bug bounty info on SECURITY.md (#17625) 2024-03-01 12:29:39 -06:00
Earle LoweandGitHub b5ab1dd243 Update code to find packaged plotters in _internal directory (#17617) 2024-02-29 10:35:13 -08:00
1baff679fe Update CHANGELOG.md (#17611)
* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: StartToaster <b.butler@chia.net>

* Update CHANGELOG.md

---------

Co-authored-by: StartToaster <b.butler@chia.net>
2024-02-28 10:12:06 -08:00
wjblankeandGitHub 74354b5f6f pin gui to 82168f1b10907a3ff379a449106f4071c80c4e0c (#17595) 2.2.0-rc4 2024-02-21 12:45:56 -08:00
Chris MarslenderandGitHub f499f9dd67 Add testnet11 constants to config if missing when configuring to run on testnet (#17568)
* If missing, add testnet11 constants to config file

* Run isort

* Be specific about which parts are missing when updating config

* Run black
2.2.0-rc3
2024-02-15 13:15:31 -08:00
Arvid NorbergandGitHub 3742b225ff bump chia_rs (#17559)
bump chia_rs to include a fix for the python binding of SerializedProgram.run_with_cost() to improve the conversion of EvalErr into ValueError
2024-02-15 09:40:38 -08:00
320d881591 Send RewardChainBlockUnfinished to third-party harvesters (#17435)
* Send RewardChainBlockUnfinished to the harvester

- Simplify data pasing in request_signed_values

* Fix instances where the rc_block_unfinished must be sent

* Lint, fix test, generate protocol messages

* Rate Limit Adjustment for RequestSignedValues (#17481)

* Further bump request_signed_values rate limit

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Luna <96448399+DaOneLuna@users.noreply.github.com>
2024-02-14 11:09:58 -08:00
Earle LoweandGitHub d3d0f1b981 Use Datalayer banning logic for HTTP download failures (#17515)
* use server_missed_file when http download fails

* Add test that we ban servers on http download failure
2024-02-14 11:09:46 -08:00
Kyle AltendorfandGitHub fc52015ded add forced ruby dotenv version for arm64 installer build (#17546)
* add forced ruby dotenv version for arm64 installer build

* Update build_linux_deb-2-installer.sh
2024-02-12 16:58:32 -08:00
Izumi HoshinoandGitHub 01deddf79d Fixed an issue where GUI could not shutdown background services (#17540) 2024-02-12 16:29:12 -08:00
Chris MarslenderandGitHub 0e6e2b6ff0 Update the version formatting used for the cli .deb (#17518)
Update the version used for the cli .deb to match the UI .deb (and confirm to expected apt versioning)
2024-02-08 10:18:50 -08:00
Amine KhaldiandGitHub 654d327729 Instruct the use of coin_puzzle_hash index to get_unspent_lineage_info_for_puzzle_hash (#17512)
Instruct the use of coin_puzzle_hash index to get_unspent_lineage_info_for_puzzle_hash.
2.2.0-rc2
2024-02-07 12:29:14 -08:00
Matt HauffandGitHub fce56b9457 Fix flaky DID test (#17509) 2024-02-07 12:26:48 -08:00
Matt HauffandGitHub 7747a0ddd1 Fix flaky trade test (#17508) 2024-02-07 12:26:30 -08:00
Amine KhaldiandGitHub 35ab75309e Set 10 as the maximum number of items that get skipped if they won't fit in the block we're trying to create (#17489)
Set 10 as the maximum number of items that get skipped if they won't fit in the block we're trying to create.
2024-02-05 09:43:28 -08:00
Arvid NorbergandGitHub cbf3d7f252 bump farmer block fill rate to 60% (#17477)
* bump farmer block fill rate to 60%

* Amine's patch to fixup test_create_bundle_from_mempool_on_max_cost
2024-02-05 08:44:20 -08:00
63417e765a Add support for generating and verifying DataLayer Proofs of Inclusions (#16845)
* initial implementaion of get_proof and verify_proof for datalayer

* Add wallet RPC and stop using offer blobs

* Don't require DL wallet to validate DL proof

* Convert to dl_verify_proof to free function

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* remove some unused verification functions

* oops deleted some important things

* fix type

* Add tests for DL proofs

* WIP using streamable classes for RPC

* Tests pass with new serializable classes

* use clvm tree hash calls instead of magic numbers and std_hash

* expanded tests to include more ways to call the same thing

* minor tests updates from feedback

* add in CLI tests

* Add separate create_multiple_keys_option

* Add helper and fixup key option

* Update tests/core/data_layer/test_data_rpc.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Add layer of indirection for the proof response

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-02-05 08:35:28 -08:00
1070ce8c36 Kyle's Install.ps1 fix for pwsh 7.4 (#17445)
fix `Install.ps1` for pwsh 7.4 (#17417)

* fix `Install.ps1` for pwsh 7.4

* fixup

* -not

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2.2.0-rc1
2024-01-31 09:26:27 -08:00
Izumi HoshinoandGitHub 880c1193bc Merge chia-blochchain-gui 2.2.0 (#17431)
* Merge chia-blochchain-gui 2.2.0

* Updated GUI locales
2024-01-30 12:40:03 -08:00
0ae3b2823f Support for third-party, farmer-rewarded, Harvesters (#16717)
* Begin add to support for third-party fee-based harvesters

Signed-off-by: Harold Brenes <h.brenes@chia.net>

* Return FoliageBlockData back to Farmer from FullNode

* Send FoliageBlockData all the way to the harvester, if requested

* Preparing tests for 3rd party  harvester support

* Continue writing tests for 3rd party harvester

* Some cleanup. Drafting

* Test full message chain of third-party Harvester reward overwrite.

Added test that validates messages between Farmer, Harvester and FullNode
to ensure that the correct data is used when an overwritten farmer reward
address is given by a third-party Harvester service.

* Changing Harvester signature request flow
to include original data, if requested.

This makes it so that NewSignagePoint unconditionally
always includes the source of the SP hashes.

* Fix incorrect field name

* Harvester can ask for original signing data without
 overwriting the reward address also.

* Update test_farmer_handles_farmer_reward_address_override to reflect changes.

- Correct farmer API get the correct data source for the signage point signature request.
- Trivial fixes

* Removing some obsolete stuff

* Trivial

* Fix tests in updated harvester protocol

- Fix including source data when
include_source_signature_data is set.

- Set source data fields optional.

- Update test so that a timelord is started and we get proper signage points
instead of aritficial ones. This helps us
make sure we test for all the source data
cases needed from the full node.

* Refactor harvester source signing data test

- Remove older harvester signing data test
 (had missing coverage for data)

- Add harvester fee convention logging

- Begin fee convention logging test

- Refactor fixtures for harvester enhancement protocol tests

Start harvester

* Complete test for harvester fee convention

* Update SignatureRequestSourceData message

- SignatureRequestSourceData is now serialized as enum + bytes.

- Update usage locations for SignatureRequestSourceData.

- Update tests to reflect this

* Missing test from last commit

* Revert to explicit None checks, instead of relying on truthiness

Revert scratch work

* Linting

* adjust for anyio

* Moe linting

* mypy fixes

* Documentation comments

* Move third-party harvester protocol tests

Moved to own directory in order to enable `install_timelord = True`

* mypy fixes

* checkout_blocks_and_plots = True

* Update some log messages, syntax and docs

* Bump timeout in tests

* Update protocol message types for
harvester and farmer for test_missing_messages`

* Regenerate protocol message data for protocol tests

* Remove timelord requirement for tests.

Inject pre-generated signage points and blocks instead.

* Linting

* More linting

* More linting

* Merge from main and lint again

* Remove customized test plots requirements

* Rebase fix

* Coverage update

- Update valid fee quality test to be unit, instead of pseudo-integration.
- New test for invalid fee quality.
- More explicit messaging for invalid fee qualities.
- Explicitly comment out uncovered case in test.
- Update types for mypy.

* Lint

* Lint

* Lint, better logs

* add protocol file tests

* coverage

* Update formatting in fee quality logging

* Rebase fix

* Regenerate protocol_message_bytes-v1.0

---------

Signed-off-by: Harold Brenes <h.brenes@chia.net>
Co-authored-by: Harold Brenes <h.brenes@chia.net>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
Co-authored-by: Harold Brenes <152330941+haorldbchi@users.noreply.github.com>
Co-authored-by: arvidn <arvid@libtorrent.org>
2024-01-26 15:07:30 -08:00
Amine KhaldiandGitHub a6827c2e92 Singleton fast forward (#16919)
Initial iteration of singleton fast forward.
2024-01-26 13:20:42 -08:00
Arvid NorbergandGitHub bdfffca5ab improve handling of UnfinishedBlocks (#17247)
* update full_node_store to support multiple UnfinishedBlocks with the same reward hash

* extend full node store to support recording outstanding requests for v2 unfinished blocks

* add test for full_node_store

* simplify creation of UnfinishedBlock in test_full_node.py

* extend UnfinishedBlock protocol to support distinguishing between unfinished blocks with the same partial hash but different foliage

* add test for NewUnfinishedBlock and NewUnfinishedBlock2

* when asking the full_node_store for an unfinished block, only by its partial hash; return the highest ranking (lowest foliage tx block hash)
2024-01-26 13:20:03 -08:00
Earle LoweandGitHub cde5fc1f22 Code Cleanup: Fix overly broad exception handler (#16136)
* Fix overly broad exception handler

* try to parse metadata and continue on errors

* Update wallet_rpc_api.py
2024-01-26 09:55:47 -08:00
Kyle AltendorfandGitHub c49cf8ca38 just use os.cpu_count() (#17379) 2024-01-25 16:49:42 -08:00
Amine KhaldiandGitHub b3def03a63 Simplify mempool item's starting cost at create_bundle_from_mempool_items (#17403)
Simplify mempool item's starting cost at create_bundle_from_mempool_items.
2024-01-25 16:49:08 -08:00
Amine KhaldiandGitHub c58baa6850 Explicitly check that mempool manager's peak (optional) is not None in SimClient's push_tx (#17404)
Explicitly check that mempool_manager's peak (optional) is not None in SimClient's push_tx.
2024-01-25 16:45:34 -08:00
Arvid NorbergandGitHub 9a6de18394 fix typo in logging (#17401) 2024-01-25 10:14:11 -08:00
Izumi HoshinoandGitHub 927ea40f53 Warn if running install-plotter.sh as root (#16206)
* Removed root user requirement

* Warn when `install-plotter.sh` is run by root user
2024-01-25 10:00:18 -08:00
Amine KhaldiandGitHub 8eb6d6aa5a Explore looking beyond mempool items that hit the maximum cost limit (#17346)
Explore looking beyond mempool items that hit the maximum cost/fee limits.
2024-01-25 09:59:53 -08:00
Amine KhaldiandGitHub 41a09e92f0 Annotate singleton_top_layer.py (#17358)
Annotate singleton_top_layer.py.
2024-01-25 09:59:33 -08:00
Amine KhaldiandGitHub a3099b03c4 Remove no longer needed remove_singleton_truth_wrapper (#17383)
Remove no longer needed remove_singleton_truth_wrapper.
2024-01-24 13:09:06 -08:00
Mike WhiteandGitHub d5188c75b5 Add additions and removals to get_offer_summary API response (#17333)
Add additions and removals to offer summary rpc
2024-01-24 13:08:48 -08:00
Kyle AltendorfandGitHub 61055edac5 add test that chia is installed when in ci (#17223)
* add test that chia is installed when in ci

* Update test_installed.py
2024-01-23 14:50:16 -08:00
Arvid NorbergandGitHub 68e2afae21 improve mempool reorg logic when the peak is a non-transaction block (#17370) 2024-01-23 11:03:41 -08:00
Arvid NorbergandGitHub 0bf842cdef undo BlockRecord cache insert, when DB fails (#16909)
* when we fail to insert a block in the DB, we undo the insertion into the block cache in BlockStore, but we currently don't undo the insertion of the block record into the block-record cache in Blockchain.

* roll back fork-info in case we fail to add a block to the DB

* improve logging
2024-01-23 10:56:24 -08:00
Amine KhaldiandGitHub a2162903a6 Annotate nft_puzzles.py (#17356)
Annotate nft_puzzles.py.
2024-01-23 10:09:21 -08:00
Matt HauffandGitHub aac1792192 Port get_notifications RPC to RPC marshaller (#17283)
* Port get_notifications RPC to RPC marshaller

* Fix test (I hate this)

* Don't use string formatting in SQL query

* rename notification member variable

* Missed a couple?

* Suggestion by @altendky (w/ black fix >:( )
2024-01-23 10:05:39 -08:00
RigidityandGitHub f742e4e515 Add way to get coin states in batches (#17300)
* Add way to get coin states in batches

* Remove partial blocks from coin state batches

* Fix logic and improve tests

* Change state batching to have fixed limit of 15,000 and test more

* Remove unnecessary parens

* Simplify batch finalization logic

* Improve filter query logic

* Improve feature test coverage

* Cleanup code and simplify finished logic

* Fix many coin states test

* Parametrize tests

* Sort by height and ensure results are in order

* Remove unnecessary test function

* Use if instead of elif

* Improve test

* Test fixture for random coin data

* Add comment explaining 15000 limit
2024-01-23 10:05:10 -08:00
Amine KhaldiandGitHub 35bffc58b4 Remove unused ignore_size_limit from get_nft_info_from_puzzle (#17355)
Remove unused ignore_size_limit from get_nft_info_from_puzzle.
2024-01-23 10:02:41 -08:00
Amine KhaldiandGitHub bec2c39107 Remove confusing claim_coinsol value in spend_to_delayed_puzzle (#17357)
Remove confusing claim_coinsol value in spend_to_delayed_puzzle.
2024-01-23 10:02:03 -08:00
Amine KhaldiandGitHub 58bd2a90fb Annotate test_simple_sync_protocol.py (#17364)
Annotate test_simple_sync_protocol.py.
2024-01-23 10:01:38 -08:00
Felix BruckerandGitHub 82f3b06051 Add support for defining a list of full node peers to connect to (#17369) 2024-01-23 10:00:54 -08:00
Amine KhaldiandGitHub 28aace130d Annotate test_singleton_lifecycle_fast.py (#17362)
Annotate test_singleton_lifecycle_fast.py.
2024-01-22 09:34:28 -08:00
Matt HauffandGitHub c0f7fd3e94 Remove duplicate short option from make_offer command (#17376)
Remove duplicate short option
2024-01-22 09:32:52 -08:00
Kyle AltendorfandGitHub 4711c52fcd fix duplicates file and upload name uniqueness (#17354)
* fix duplicates file name and upload artifact name uniqueness

* test it

* fix

* again

* Revert "test it"

This reverts commit b64956208d.

* add missing single quotes
2024-01-21 08:17:55 -06:00
Amine KhaldiandGitHub 2c502dea95 Compute and reuse launcher_id (#17360)
Compute and reuse launcher_id.
2024-01-19 20:51:37 -06:00
wjblankeandGitHub 4ec439f789 measured new_signage_point_harvester size with 100 pools for limit (#17350) 2024-01-19 20:51:23 -06:00
Chris MarslenderandGitHub 84f3e3d9f2 Pull smtools from downloads since digicert is being flaky (#17367)
* Pull smtools from downloads since digicert is being flaky

* Fix precommit
2024-01-19 16:15:06 -06:00