Commit Graph
14659 Commits
Author SHA1 Message Date
Kyle AltendorfandGitHub 5eeec865e9 stub and use SizedBytes.fromhex() until upstream is released (#9458)
* stub SizedBytes.fromhex() until upstream is released

https://github.com/python/typeshed/pull/6201

* black

* more

* more

* more

* more

* more

* import TYPE_CHECKING via from

* more

* more

* catch up
2021-12-10 14:59:49 -08:00
William Blanke c2b229596b updated gui to NEXT 6dfbc2da694672d706959c521698fcc41e8997e4 2021-12-10 09:20:44 -08:00
dustinfaceandGitHub 8e6b7afa79 tests: Some cleanups after #9306 and #9409 (#9503)
* tests: Drop `None` check and compare the events directly

* tests: Drop unused `TestRefreshResult`
2021-12-10 09:18:51 -08:00
Mariano SorgenteandGitHub 99adab1b83 Do not included reversed blocks in get_blocks response if flag is provided (#9141)
* Do not included reversed blocks in get_blocks response

* Do not break RPC by changing the default behaviour, but instead add a flag.
2021-12-10 09:18:02 -08:00
Juraj OršulićandGitHub 9ec44cc2ac Fix comment typo in the standard wallet puzzle (#9346) 2021-12-10 09:17:06 -08:00
Chris MarslenderandGitHub 772e607681 always update best timestamp even if we weren't able to connect to keep track of gossiped peers properly (#9538) 2021-12-10 09:16:17 -08:00
Arvid NorbergandGitHub 35cab7cea2 Block store benchmark (#9520)
* include SubEpochSummary objects

* make header_hashes authentic. include benchmarks of lookups on block_store as well
2021-12-09 15:38:59 -08:00
Kyle Altendorf d9e98b918b make those xfails strict 2021-12-09 18:37:07 -05:00
Kyle Altendorf 07c2b7aa9a xfail some data layer tests 2021-12-09 18:22:13 -05:00
Kyle Altendorf 759b173e7d stricter hints 2021-12-09 12:13:48 -05:00
dustinfaceandGitHub 8487372a4d build_scripts: Only copy win_code_sign_cert.p12 if we have secrets (#9516)
PRs from forked `chia-blockchain` repos don't have the cert available 
which leads to the installer step to fail, see 
https://github.com/Chia-Network/chia-blockchain/runs/4465950001

Follow-up for #9506.
2021-12-09 08:23:19 -06:00
Kyle Altendorf d51ec3be7c hints and related 2021-12-08 22:25:30 -05:00
Kyle Altendorf 1ffd3f27a7 Merge branch 'main' into atari 2021-12-08 20:50:36 -05:00
Chris MarslenderandGitHub 313cf27eee Installer Fixes - New UI (#9506)
* Update to node 16

* Install lerna globally. Lerna clean, and comment out audit:fix for now since it doesn't work with Lerna (see https://github.com/lerna/lerna/issues/1663)

* Global lerna in build mac as well

* Test building the gui package, instead of from the root

* Build installer from the gui package and copy daemon folder to the correct place

* Pass executable name / options.name to linux installers

* Move installers to the root of blockchain-gui

* Fix winstaller

* Latest NEXT

* Update to latest UI

* Copy signing cert for windows to proper location
2021-12-08 15:39:01 -07:00
William Blanke 9217993282 updated GUI to NEXT 2c236bf0f4a32b718ec6f8a243e07736f7a555f3 2021-12-08 10:40:06 -08:00
Kyle Altendorf d17ce9efab Merge branch 'main' into atari 2021-12-07 21:39:10 -05:00
William Blanke 7f9a09fe90 updated gui to 381bf48332f6ae0af6703af0636f272c5cf8c357 2021-12-07 12:01:34 -08:00
Kyle AltendorfandGitHub c7c0b889e9 Merge pull request #9357 from Chia-Network/atari-fixup_optionals 2021-12-07 13:30:12 -05:00
Earle LoweandGitHub e78fef5003 Set the permissions of chrome-sandbox (#9421)
* Set the permissions of chrome-sandbox

Testing to see if setting the permissions of chrome-sandbox prior to packaging works, or if an RPM post-install script is needed

* use rpm attr to set file permissions

* whitespace fixup
2021-12-07 09:58:05 -08:00
dustinfaceandGitHub ad7b549cbd plotting|tests: Catch exceptions in the plot manager thread (#9409)
Without this the plot manager thread silently dies on exceptions and
refreshing just stops. This change leads to refreshing reset and a error
log on exceptions.
2021-12-07 09:57:24 -08:00
Geoff WalmsleyandGitHub a085d26670 added get_coin_records_by_parent_ids to spend_sim (#9438)
* added get_coin_records_by_parent_ids to spend_sim

* fix linting errors
2021-12-07 09:56:37 -08:00
8db6ee540d [v2] Remove is_peak field (#9487)
* remove is_peak field, instead, store the peak hash in a single place

* Update chia/full_node/block_store.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update chia/full_node/block_store.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2021-12-07 09:55:49 -08:00
Kyle Altendorf 51a1a2ffac -f 2021-12-07 11:06:45 -05:00
Kyle AltendorfandGitHub 475514db0b fix a hint issue by just removing an _ (#9482) 2021-12-07 07:57:39 -08:00
Kyle AltendorfandGitHub 9a6ab80f68 rename variable to avoid hint confusion (#9474)
Earlier in the function `peak_hash` is used and is detectible as
`bytes32`.  At this location it is assigned from an `Any` hinted
value thus leaving `bytes32` as a valid, although inaccurate,
hint.  Renamed to avoid this collision of uses.  When we ban `Any`
we will end up dealing with this.
2021-12-07 07:57:03 -08:00
Kyle AltendorfandGitHub c5902841de Just use bytes32() some more (#9472)
* Just use bytes32() some more

* black

* more
2021-12-07 07:55:48 -08:00
Kyle AltendorfandGitHub 406253f782 Adjust compress_root() to return bytes32 (#9470) 2021-12-07 07:55:04 -08:00
Kyle AltendorfandGitHub b998193c7e create and use SizedBytes.from_hexstr() (bytes32) (#9467)
* create and use SizedBytes.from_hexstr() (bytes32)

* another

* more

* more
2021-12-07 07:54:26 -08:00
Matt HauffandGitHub 6a1f79f325 Add an RPC to get currently logged in fingerprint (#9436)
* Added /get_fingerprint to wallet RPC

* Added to client too

* return only the fingerprint

* Change RPC name

* Added test
2021-12-07 07:45:32 -08:00
Kyle Altendorf fcb1e6ba97 Merge branch 'atari' into atari-fixup_optionals 2021-12-07 10:39:51 -05:00
Kyle AltendorfandGitHub 1ea71980dd Merge pull request #9364 from Chia-Network/atari-rework_block_farming 2021-12-07 09:33:45 -05:00
Arvid NorbergandGitHub 84c48469ed remove unused field (is_block) from full_blocks and block_records tables (#9481) 2021-12-06 15:39:07 -08:00
Kyle AltendorfandGitHub a036a7cd21 remove tests/wallet/test_backup.py (#9326) 2021-12-06 14:36:04 -08:00
Kyle Altendorf 113efb739a fixup 2021-12-06 17:13:12 -05:00
Kyle Altendorf 784ee1f8ec add missing await 2021-12-06 16:50:09 -05:00
Arvid NorbergandGitHub cd80f67d74 [v2] use binary fields in coin_store table (#9455)
* use binary fields on coin_store table

* fix coin_store benchmark format string
2021-12-06 11:22:12 -08:00
Arvid NorbergandGitHub a97b03ac56 use binary keys in block_store (#9454) 2021-12-06 11:21:48 -08:00
dustinfaceandGitHub 59b8be5f72 chia|tests: Pass the loaded/removed plots with PlotRefreshResult (#9306)
* chia|tests: Pass the loaded/removed plots with `PlotRefreshResult`

Instead of just the counts.

* plotting: Default to `False` for `expected_result_matched`

* tests: Validate the loaded/removed plots match the expectations
2021-12-06 07:53:26 -08:00
Arvid NorbergandGitHub 546011381d fix mypy issues in benchmark/block_store.py (#9457) 2021-12-05 09:36:52 -08:00
Kyle Altendorf 4499f23f42 remove unused 2021-12-03 17:04:08 -05:00
Arvid NorbergandGitHub 70d31a8c68 V2 database framework (#9442)
* fix block_store benchmark linting issues

* basic support for database versioning

* update benchmark to run v1 and v2
2021-12-03 13:52:10 -08:00
William Blanke cc3b5e326e updated bls, pos, and clvm_rs to new releases 2021-12-03 13:51:27 -08:00
Kyle Altendorf b7ee24dc63 add the wallet state manager lock 2021-12-03 16:36:55 -05:00
Kyle Altendorf 34e5d80d7f add test for FullNodeSimulator.create_coins_with_amounts() 2021-12-03 16:07:06 -05:00
Kyle Altendorf 5a2aa1c73f oops 2021-12-03 16:06:36 -05:00
Kyle Altendorf 9ddee2e2d1 add test for FullNodeSimulator.process_transaction_records() 2021-12-03 16:06:25 -05:00
Kyle Altendorf 501ade5404 add test for FullNodeSimulator.wait_transaction_records_entered_mempool() 2021-12-03 12:10:45 -05:00
Kyle AltendorfandGitHub 8291f0221a Make the sized bytes types hint compatible (#9369)
* Rework sized bytes for type hinting compatibility

* add a bunch of type: ignores

* this will be handled elsewhere

* noqa E501 instead of changing code

* normalize comment plurality

* @classmethod

* Revert "@classmethod"

This reverts commit 95db80e339.

* add ignore in benchmarks

* just E501 again...

* add some new type: ignores
2021-12-02 09:43:39 -08:00
Kyle Altendorf 441cb66806 mypy 2021-12-01 21:21:59 -05:00
Kyle Altendorf 0393e92ebe wait for block to actually be processed 2021-12-01 20:33:47 -05:00