Commit Graph
11106 Commits
Author SHA1 Message Date
Izumi HoshinoandGitHub ec5ef087fe Added defaults to get_harvester_config API (#15820) 2023-07-20 13:25:16 -05:00
bc00bc71d3 Bump chia-blockchain-gui to 2.0.0-rc1 (#15815)
* Bump chia-blockchain-gui to 80dc27d5348a89e17018cd095868bcf67c94abb1

* Refactor TX filter to use TransactionTypeFilterMode Enum by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1837
* Update Electron to 25.1.1 by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1858
* Add spendClawbackCoins to WalletConnect commands by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1853
* Update lerna to 7.0.0 and node to 16.20.1 by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1861
* Updated mui and lingui by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1865
* Fixed dapp disconnect by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1866
* Used new useAuth hook for logIn by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1868
* Specify copyright owner in LICENSE by @hoffmang9 in https://github.com/Chia-Network/chia-blockchain-gui/pull/1877
* Updated locales by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1887
* Fixed scroll overflow in the header by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1874
* Add useGetWalletAddressesQuery RPC hook by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1892
* Correct Farm.svg attributes by @wallentx in https://github.com/Chia-Network/chia-blockchain-gui/pull/1895
* Clawback button compare time with latest block time by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1884
* Move wallet balance cards for CAT txns by @zsolt-dev in https://github.com/Chia-Network/chia-blockchain-gui/pull/1903
* VC fixed rendering by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1888
* Plot compression UX updates by @ChiaMineJP in https://github.com/Chia-Network/chia-blockchain-gui/pull/1772
* Update WalletConnect package to 2.9.0 by @seeden in https://github.com/Chia-Network/chia-blockchain-gui/pull/1897
* Address book feature by @paninaro in https://github.com/Chia-Network/chia-blockchain-gui/pull/1910
* Bugfix: Crash importing malformed local VC by @rifeljm in https://github.com/Chia-Network/chia-blockchain-gui/pull/1890

**Full Changelog**: https://github.com/Chia-Network/chia-blockchain-gui/compare/1.8.2...2.0.0-rc1

* 11

---------

Co-authored-by: Jeff Cruikshank <jeff@chia.net>
2023-07-20 00:45:59 -05:00
William AllenandGitHub 458750219d Update chiapos (#15816) 2023-07-20 00:45:44 -05:00
Matt HauffandGitHub 7c904c6cf0 Fix CLI indentation (#15811) 2023-07-19 14:39:48 -05:00
a4471bfa8a pass DataLayer root and generation instead of requerying (#15613)
* Cache root changes in insert_batch loop

* Reduce selects for root and generation

* remove sql logging, extracted to https://github.com/Chia-Network/chia-blockchain/pull/15690

* remove optimization extracted to https://github.com/Chia-Network/chia-blockchain/pull/15691

* remove optimization extracted to https://github.com/Chia-Network/chia-blockchain/pull/15728

* Delete test_batch_speed.py

benchmark provided in another already merged pr

* add `Root.to_row()`

* shift optimization to `DataStore.get_keys_values_dict()`

* rename to `intermediate_root`

* less tuple returning

* Revert "shift optimization to `DataStore.get_keys_values_dict()`"

This reverts commit b12ae08e3b.

* add `test_data_store.test_insert_batch_reference_and_side()`

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-07-19 13:47:17 -05:00
JeffandGitHub e037b447a7 Bump chia-blockchain-gui to c5387ea116a4ed18c3f7ff15a711ecd2bb89fa15 (#15806)
Includes plotting/harvesting UI updates for compressed plots
2.0.0-b5
2023-07-18 23:44:40 -05:00
5c76f50117 Farmer now returns missing signage points (#15765)
* Farmer now returns missing signage points

* Added test

* Fixed lint error

* Ignored strange pylint behavior

* Fixed lint error

---------

Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-07-18 21:04:03 -05:00
Izumi HoshinoandGitHub 85d14f561a Added compression level and harvesting mode to harvester protocol/mes… (#15776)
* Added compression level and harvesting mode to harvester protocol/messages

* Added test

* Fixed lint error
2023-07-18 16:24:56 -05:00
Izumi HoshinoandGitHub 1f9081a225 Added total_effective_plot_size for get_harvesters RPC API (#15770)
* Added `total_effective_plot_size` for `get_harvesters` RPC API

* Fixed lint error

* Change the type of `total_effective_plot_size` in Receiver to `int`

* Fixed lint error

* Fixed lint error 2

* Changed text

* Added test

* Fixed lint error

* Fixed lint error 2

* Fixed a test issue

* Added config.py to tests/cmds
2023-07-18 12:36:12 -05:00
b772ac91db Added cuda and plot compression support for bladebit 3 (#15774)
* Added cuda and plot compression support for bladebit 3

* Update chia/plotters/bladebit.py

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>

* Update chia/plotters/bladebit.py

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>

* Fixed issues

* Fixed lint error

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2023-07-18 12:33:42 -05:00
Izumi HoshinoandGitHub dd1fbeb040 Added get_keys_for_plot daemon server API (#15772)
* Added `get_keys_for_plot` daemon server API

* Fixed isort error

* Added assertion code

* Added tests

* Fixed flake8 error

* Applied review suggestion

* Added test cases for daemon client

* Renamed `get_keys_for_plot` -> `get_keys_for_plotting`
2023-07-18 12:26:48 -05:00
Izumi HoshinoandGitHub 3b116c738b Added average_block_time to get_blockchain_state FullNode RPC API (#15777)
* Added `average_block_time` to `get_blockchain_state` FullNode RPC API

* Updated the code according to the review

* Fixed lint error

* Fixed lint error 2

* Fixed lint error 3

* Applied review suggestion

* Fixed lint error

* Update

* Added tests

* Fixed test
2023-07-17 16:34:04 -05:00
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