Commit Graph
11094 Commits
Author SHA1 Message Date
Izumi HoshinoandGitHub e772e4ff69 Improved pool stats handling (#15764)
* Improved pool stats handling

* Minor update

* Made `increment_pool_stats` free function

* Updated `increment_pool_stats` function args

* Fixed isort issue

* WIP: Adding test cases

* Fixed lint error

* Fixed lint error 2

* Fixed lint error 3

* Added test case
2023-07-17 15:39:00 -05:00
Kyle AltendorfandGitHub aa3e1563e8 avoid DataLayer insert ancestors precheck (#15728)
* avoid DataLayer insert ancestors precheck

* remove original change

* update

* no cover `:[`
2023-07-17 15:37:27 -05:00
Matt HauffandGitHub 80c07a7476 Remove references to old offer mod (#15694)
* Remove references to old offer mod

* Add guards in RPC against parsing old offers

* Fix benchmark test

* test coverage
2023-07-17 15:02:04 -05:00
Kyle AltendorfandGitHub 79c71cb192 fixup per file matrix generation config (#15761) 2023-07-17 14:22:47 -05:00
Kyle AltendorfandGitHub a76071e752 Report certificate errors directly for CLI connection errors (#15518)
improve clarity of cli connection errors around certificates
2023-07-17 14:21:41 -05:00
99c55fea67 Announce conditions limit (#15790)
* Test announcement condition limits for soft-fork 3

* run slow wallet-sync tests in plain mode only

---------

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2023-07-17 13:17:48 -05:00
Matt HauffandGitHub ac4c2ca2ee Fix flaky CAT test (#15759)
* Fix flaky CAT test

* Update test_transaction_store test
2023-07-17 13:16:51 -05:00
Kyle AltendorfandGitHub 9aae96df08 avoid DataLayer insert precheck (#15691)
* avoid DataLayer insert precheck

* just check the string...

* Update test_data_store.py

* Update data_store.py

* no cover `:[`
2023-07-17 13:15:41 -05:00
Kyle AltendorfandGitHub ca34240b43 add sql logging config for DataLayer (#15690)
* add sql logging config for DataLayer

* add test

* data_sql.log
2023-07-17 13:15:22 -05:00
Izumi HoshinoandGitHub fcde4bd619 Added blocks_won and last_time_farmed to get_farmed_amount Wall… (#15778)
* Added `blocks_won` and `last_time_farmed` to `get_farmed_amount` Wallet RPC API

* Updated code according to the review

* Fixed performance degradation

* Fixed lint error
2023-07-17 10:23:20 -05:00
Matt HauffandGitHub 494e6e7f22 Add RPC client and tests for cancel_offers endpoint (#15758) 2023-07-17 10:22:52 -05:00
Arvid NorbergandGitHub eda68c0cdd solution_generator (#15768)
* use solution_generator() from rust

* farm blocks with backrefs

* update BlockTools to generate block generators serialized with backrefs

* support deserializing programs with backrefs
2023-07-17 10:05:37 -05:00
Jack NelsonandGitHub 5d1d328682 Cleanup & Fix Simulator Sub Epoch Logic (#15698)
* cleanup sub slot logic

* cleanup + fix code

* add more comments
2023-07-15 18:18:45 -05:00
Izumi HoshinoandGitHub e1b17c61de Updated UI_ACTUAL_SPACE_CONSTANT_FACTOR to 0.78 (#15771) 2023-07-14 22:27:04 -05:00
Matt HauffandGitHub be847b6dff Fix whitespace on legacy-support-policy.md (#15779)
Fix legacy-support-policy.md
2023-07-14 19:49:41 -05:00
Kyle AltendorfandGitHub 2d28d62ab2 move sqlite host parameter limit to db wrapper (#15755)
* move sqlite host parameter limit to db wrapper

* pylint

* E

* oops

* fixup
2023-07-14 19:38:36 -05:00
Jack NelsonandGitHub 9713c3f5f4 Fix Cli error when exiting on some builds of python. (#15762)
* change from exit to sys.exit and remove catch

* change error to ClickException and move error messages

* cleanup wallet func
2023-07-14 17:39:30 -05:00
Justin EnglandandGitHub 6a5293df6b Create legacy-support-policy.md (#15766)
* Create legacy-support-policy.md

* Update legacy-support-policy.md

* Update legacy-support-policy.md

* Update legacy-support-policy.md

* Update legacy-support-policy.md

* Update legacy-support-policy.md
2023-07-14 15:57:21 -06:00
Kyle AltendorfandGitHub fb15774ccb use actual chiapos version when testing daemon (#15754)
* use actual chiapos version when testing daemon

* isort
2023-07-14 15:48:24 -05:00
Izumi HoshinoandGitHub 15fa5f3764 Added quality lookup time info to FarmingInfo (#15775) 2023-07-14 14:23:34 -05:00
Kyle AltendorfandGitHub 42a6d1afa6 remove support for Python 3.7 (#14611)
* remove support for Python 3.7

* python_requires=">=3.8, <4"

* 3.8.1+

* catchup

* remove todos handled in https://github.com/Chia-Network/chia-blockchain/pull/15755
2023-07-14 12:49:58 -05:00
wjblankeandGitHub 69674ccf46 Fixed add lock around plot info (#15767)
* add lock around plot info

* set threads back to 5
2023-07-14 10:15:22 -05:00
xchdata.ioandGitHub 344a7bbb80 Fix variable name typo (#15680) 2023-07-14 02:09:46 -05:00
Arvid NorbergandGitHub 849166361d bump chia_rs dependency to 0.2.9 (#15760) 2023-07-13 23:19:46 -05:00
dustinfaceandGitHub 3253718324 wallet: Convert coin ids in _add_coin_states to bytes32 (#15556) 2023-07-13 15:41:32 -05:00
dustinfaceandGitHub ede354c58f protocols: Introduce error protocol message (#15493)
* protocols: Introduce `error` protocol message

* Add `Optional` extra data `Error.data`

* Test `Err` entries
2023-07-13 13:46:20 -05:00
f96690bdc5 Renaming instances of 'decompresser' to 'decompressor' (#15751)
* Renaming instances of 'decompresser' to 'decompressor'

* Making 'parallel_decompressors_count' singular

* Using chiapos version that has matching spelling

* Putting the clsp file back where I found it

* fix ver

---------

Co-authored-by: Jack Nelson <j.nelson@chia.net>
2023-07-13 09:59:51 -05:00
7b67fe0a4a compressed plot support (#15702)
* Compression branch.

* disable GPU farming in tests

---------

Co-authored-by: Florin Chirica <fchirica96@gmail.com>
2023-07-12 16:49:15 -05:00
Gene HoffmanandGitHub faf4709834 Update config.yml (#15515)
Remove and replace Keybase references with Discord
2023-07-12 13:01:32 -07:00
Florin ChiricaandGitHub e84bdb0b30 Add fields to BlockRecord. (#15695)
* Add fields to BlockRecord.

* Lint.

* Checkpoint refactor.

* Lint.

* Optimize get_block_records_by_hash.

* Lint.

* Coverage.

* Optimize v1 get_block_record.

* Trailing space.

* Remove async with await.

* Default 400.

* Address review comment.
2023-07-12 12:47:02 -05:00
Amine KhaldiandGitHub 4cf2bc9813 Unify test_create_coins_with_amounts() versions into one (#15738)
Unify test_create_coins_with_amounts() versions into one.
2023-07-12 11:22:01 -05:00
Matt HauffandGitHub 58e6081465 Add DIDWallet.get_coin() to simplify DID wallet (#15730)
* Add DIDWallet.get_coin() to simplify DID wallet

* set not list

* Test coverage
2023-07-12 11:10:03 -05:00
cecda28e84 Plot filter hard fork (#15336)
* update passed_plot_filter() to take the filter size rather than consensus constants. This allows the filter size to change by block height. make verify_and_get_quality_string() take either the height or filter size

* Add some filter_prefix_bits tests on test blocks.

* Add some filter_prefix_bits tests on simulated farmer and harvester.

* Cache filter prefix bits by challenge chain signage point hash and use that for the the lookups. This allows us to perform plot filter validation.

* Add more cases to verify_and_get_quality_string() unit tests.

* Add some tests for Farmer's respond_signatures.

* Apply Kevin's suggestion to simplify the check for passing plot filter.

* Apply Kevin's suggestions to simplify some test checks and fix a couple typos.

* Apply Kevin's suggestion to send peak height instead of filter prefix bits as part of NewSignagePoint.

* Remove no longer needed filter prefix bit related logic and make height non optional in verify_and_get_quality_string().

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2023-07-12 10:26:23 -05:00
Kronus91andGitHub 40a347f1a7 Clawback resync (#15496)
* Double check coin state

* Fix coverage

* Resolve comments

* Fix unit test

* Fix redundant tx

* Add unit test

* Fix unit test

* refine unit test

* Remove duplicate test

* Fix test on Windows

* Fix clawback memo

* Fix revert

* Improve clawback test

* Remove pragma

* Resolve comments

* Revert clawback test fix

* Add comment for tx confirmed

* Resolve comments

* Remove unrelated change

* Resolve comments

* Fix coverage
2023-07-11 13:31:53 -05:00
Arvid NorbergandGitHub 1e534d0281 pass consensus constants into get_name_puzzle_conditions(). (#15736)
pass consensus constants into get_name_puzzle_conditions(). This is required for tests that use alternate constants, such as fork activation heights
2023-07-11 09:52:49 -05:00
Matt HauffandGitHub 36be4c4836 Some NFT RPC mypy fixes (#15715) 2023-07-10 18:53:26 -05:00
Jack NelsonandGitHub 3eb23f60da Cleanup CLI RPC connection error handling (#15704)
* remove none from async generator and add a custom error type

* remove client check from data funcs

* remove client check from farm funcs

* remove client check from peer, show and netspace funcs

* remove none check from sim funcs

* change the wallet code in cmds util to use the new error type

* update plotnft_funcs with new error

* remove none checks from coin and wallet funcs

* cleanup logic a tad
2023-07-10 15:41:51 -05:00
Arvid NorbergandGitHub 2559fbe6c4 fix typo in chia plots check (#15727) 2023-07-10 14:34:03 -05:00
dustinfaceandGitHub d1d3522629 server: Store Handshake.software_version in connections as str (#15725) 2023-07-10 11:53:43 -05:00
Arvid NorbergandGitHub 39bcc233b1 remove ROM bootstrap generator2, as we're not making this transition (#15676) 2023-07-07 18:08:39 -05:00
Arvid NorbergandGitHub 1d06adc9a6 forward flags in get_puzzle_and_solution_for_coin() (#15708)
support backrefs in the clvm serialization passed in- and out of get_puzzle_solution()
2023-07-07 18:08:15 -05:00
Arvid NorbergandGitHub ca1147584d Hard fork 2.0 (#15581)
* add HARD_FORK_2_0 consensus_mode to run tests under hard-fork consensus rules

* hook up soft-fork and hard-fork changes in CLVM

* fix AGG_SIG_* garbage tests for the 2.0 hard-fork

* add test for unknown conditions with cost, which is a hard-fork feature

* add mempool tests for unknown conditions with cost

* add tests for the SOFTFORK condition

* fix benchmark to take LIMIT_ANNOUNCES into account
2023-07-07 13:58:43 -05:00
ca1a53e42f Convert All CLI Commands to using async generators (#15628)
* add new get_wallet_client generator

* switch plotnft code to new generator

* change coin commands over to new generator

* remove extra imports

* change to 100% new async generator

* remove execute_with_wallet func

* Enable mypy on almost every cli file.

* Rename variables from yes

* switch to kwargs on really long functions & fix default list

* fix missing None & Fix syntax for unrelated change

* make more functions kwarg only

* Apply suggestions from code review

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

* final review changes

* oops fix backwards compatibility

* drop default, hint sequence

* List (for now...)

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-07-07 12:26:45 -05:00
Kyle AltendorfandGitHub 1b2ed64ce7 less e501 (#15689) 2.0.0-b4 2023-07-07 11:19:11 -05:00
Kyle AltendorfandGitHub 0f15486141 test-single.yml: defaults: run: shell: bash (#15535)
* test-single.yml: defaults: run: shell: bash

* try removing windows specific steps

* env.GITHUB_WORKSPACE

* Update test-single.yml

* Update test-single.yml

* Update test-single.yml
2023-07-07 11:18:35 -05:00
William AllenandGitHub b56d55cceb checkpoint: into main from release/1.8.3 @ 667370befe (#15713)
Source hash: 667370befe
Remaining commits: 0
2023-07-07 11:16:57 -05:00
Amine Khaldi 5c216793a3 Merge commit '667370befe564b3aca573174aecb1a83fe679d81' into checkpoint/main_from_release_1.8.3_667370befe564b3aca573174aecb1a83fe679d81 2023-07-07 17:11:26 +01:00
William AllenandGitHub 7a7b229669 checkpoint: into main from release/1.8.2 @ f0764f27de (#15712)
Source hash: f0764f27de
Remaining commits: 0
2023-07-07 11:01:59 -05:00
Amine Khaldi 2b3ba59b5f Merge commit 'f0764f27defa865fd4ccc28756195e535adc6bd9' into checkpoint/main_from_release_1.8.2_f0764f27defa865fd4ccc28756195e535adc6bd9 2023-07-07 16:16:35 +01:00
William AllenandGitHub 29d0978aa1 checkpoint: into main from release/1.8.2 @ 4f1810e917 (#15709)
Source hash: 4f1810e917
Remaining commits: 1
2023-07-07 10:14:02 -05:00