Commit Graph
14659 Commits
Author SHA1 Message Date
Amine KhaldiandGitHub c577b5a0a5 Fix lineage proofs primary key constraint. (#10282)
* Fix lineage proofs primary key constraint.

* Linting suggested changes.
2022-02-18 07:49:56 -08:00
Kyle AltendorfandGitHub 9a3194599d do not enable signals on services in tests (#10290) 2022-02-18 07:49:19 -08:00
Amine KhaldiandGitHub f8ee3d5599 Fix fee validation in cat_spend wallet RPC API (#10284)
* Fix fee validation in cat_spend wallet RPC API.

* Linting suggested changes.
2022-02-18 07:48:49 -08:00
Chris MarslenderandGitHub 457812ac21 Crawler RPC IP endpoint (#10294)
* Add endpoint to crawler to get IP addresses seen by the network after a particular timestamp

* Add offset/limit for get_ips_after_timestamp
2022-02-18 07:44:06 -08:00
Chris MarslenderandGitHub 5e4c1a1f62 Timelord RPC + Misc Metrics Updates/Fixes (#10255)
* Add mempool_max_total_cost to RPC

* Add signage_point event

* Fix incorrect crawler RPC port lookup

* Set up initial timelord RPC server + finished_pot_challenge event

* Add new compact proof event

* Add skipping/new_peak to track when fastest or not

* Check for None on change_data

* Add skipping_peak + new_peak to changes for metrics

* Convert chain to value

* Rename iters

* Timelord RPC to 8557 - 8556 is used in simulation tests

* Make tests work with RPC server on timelord

* Change event name to finished_pot

* Use broadcast_farmer object

* Move state changed for `finished_pot` after proofs_finished.append

* Fix type on ips var + add vdf_info and vdf_proof

* fix event name on the state_changed function
2022-02-18 07:43:52 -08:00
Kyle AltendorfandGitHub ffe4e7ca37 Fix setuptools_scm local_scheme configuration (#10296)
* only configure setuptools_scm in pyproject.toml

* unban setuptools 60.9.1 and 60.9.2
2022-02-18 10:29:55 -05:00
almog 246f21ddad add get_root_history to cli
add paths in rpc_api
2022-02-18 16:44:39 +02:00
Florin Chirica f2367055a1 Add test. 2022-02-18 16:42:19 +02:00
almog b0ca8c9d79 test get_kv_diff 2022-02-18 15:50:15 +02:00
Florin Chirica 9528603fcd Get local root. 2022-02-18 15:43:57 +02:00
almog acadcf8a09 add cli 2022-02-18 15:26:16 +02:00
Kyle AltendorfandGitHub 47a0a9101c apply isort (#10280) 2022-02-17 19:46:51 -08:00
52e439ccbe Ms.sync cancel (#10244)
* Start fixing other issues

* Fork point, sync cancelling, random peer

* Reduce logging

* Improve performance and have a fallback peer for fetching

* Disconnect not synced peers

* Make sure try catch doesn't fail

* Fix lint

* Update chia/wallet/wallet_node.py

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

* Pylint has a bug so ignore pylint for this line

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-17 13:35:41 -08:00
Matt HauffandGitHub fad3f88b13 Bundle CATs with announcements (#10260)
* Bundle CATs with announcements

* Make the announcement deterministic to the coins being spent
2022-02-17 11:44:28 -08:00
Matt HauffandGitHub e61c0f477b Accommodate multiple coin fees (#10251) 2022-02-17 11:20:19 -08:00
Matt HauffandGitHub 2c4cbb9127 Do our best to only show inner puzzle hashes (#10015)
* Do our best to only show inner puzzle hashes

* Add to get_transaction(s) API

* Unrelated minor fix

* black
2022-02-17 09:52:17 -08:00
almog 3d4c0caa0e comment 2022-02-17 18:32:53 +02:00
almog b584fab073 add get_kv_diff endpoint 2022-02-17 18:31:01 +02:00
974e29c0dd Create a CAT lineage store (#10181)
* Create a CAT lineage store

* Lint

* Fix migration

* Forgot await

* Bad SQL statement

* fix precommit

Co-authored-by: wjblanke <wjb98672@gmail.com>
2022-02-17 08:10:17 -08:00
Kyle AltendorfandGitHub f6e479cc07 Improve StructStream hints to support decimal and other parameters like int itself (#9949)
* Improve StructStream hints to support decimal and other parameters like int itself

* get SupportsIndex from typing_extensions
2022-02-17 07:35:13 -08:00
Arvid NorbergandGitHub 34159d3529 optimize get_block_generator() (#10104)
* optimize get_block_generator()

* add a v1 compatible get_generator() to speed up get_block_generator() with v1 databases. Add test. Add error log in case generator_from_block() fails.

* speed up test_full_block_utils
2022-02-17 07:32:29 -08:00
Kyle AltendorfandGitHub d1516f9e00 import ConditionOpcode from actual definition (#10132) 2022-02-17 07:30:36 -08:00
Jack NelsonandGitHub b794d78b28 Fix memory leak in sync_store.py (#10216)
* switch to orderdict and use fifo

* workaround for older python versions

* oops

* Update sync_store.py

* fixed

* move comment for clarity

* Update sync_store.py
2022-02-17 07:29:42 -08:00
Kyle AltendorfandGitHub 1df6793d51 filterwarnings = error (#10240)
* filterwarnings = error

* ignore some warnings

* Update pytest.ini
2022-02-17 07:28:55 -08:00
Kyle AltendorfandGitHub c50ac761fa do not generate __init__.py in .pytest_cache (#10270) 2022-02-17 07:27:22 -08:00
Florin Chirica 328addddc6 Address review comments. 2022-02-17 16:39:44 +02:00
Kyle AltendorfandGitHub 5d2770cbdd extend pools test workflow timeout to 60 minutes (#10271) 2022-02-16 19:10:37 -08:00
Arvid NorbergandGitHub a7c73e4125 use synchronous sqlite3 library in db conversion function (#10259) 2022-02-16 16:21:25 -08:00
JeffandGitHub 4920a464c1 Remove the "Cleaning up temp keychain in dir" message to reduce noise. (#10264)
* Remove the "Cleaning up temp keychain in dir" message to reduce noise.

* Remove unnecessary temp variable
2022-02-16 18:51:56 -05:00
Kyle AltendorfandGitHub 767974cb93 reinstate pre-existing signal configuration on windows for services (#10263) 2022-02-16 15:26:03 -08:00
Kyle AltendorfandGitHub df858701e4 Ban setuptools 60.9.2 (#10269) 2022-02-16 15:21:00 -08:00
Florin Chirica 6dfbdfe363 Fix LGTM. 2022-02-16 23:25:46 +02:00
Florin Chirica 428e194b65 Override on identical subscribe ID. 2022-02-16 22:46:01 +02:00
Florin Chirica 3cea9af459 Reset local datastore on failure. 2022-02-16 20:17:53 +02:00
Arvid NorbergandGitHub ce533879e2 run pytest in strict asyncio mode. add missing @pytest.mark.asyncio (#10230) 2022-02-16 11:01:04 -05:00
Kyle AltendorfandGitHub d2f074e3bd Merge pull request #10254 from Chia-Network/atari-fixup
update _row_to_singleton_record() call
2022-02-16 08:05:56 -05:00
Kyle Altendorf a60ad52be1 update _row_to_singleton_record() call 2022-02-15 20:18:51 -05:00
Kyle AltendorfandGitHub 0eda0ec945 Merge pull request #10248 from Chia-Network/atari_wallet_locking
Acquire lock during update RPCs
2022-02-15 19:09:23 -05:00
f8a6c54e1a Fix to allow debugging services when launched alongside the GUI (#10233)
* Daemon RPCs `start_service` and `is_running` will additionally check
self.connections to determine if the service is running. When launching
services manually (e.g. when debugging), the GUI was attempting to have
the daemon relaunch an already-running service.

* Update chia/daemon/server.py

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

* Updates per feedback

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 14:43:50 -08:00
Arvid NorbergandGitHub 0464265734 use monotonic clock in benchmarks (#10242) 2022-02-15 14:42:51 -08:00
f5ade1564c Announcement hash should never be None (#8965)
* Announcement hash should never be None

* Allow origin ID to be anywhere in the coin set

* mypy

* Change to for/else format

* Fix comment

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

* Style change to loop

* tiny bad merge

* Add test

* Lint

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-02-15 14:42:07 -08:00
Gene HoffmanandGitHub 7df694ffe3 Remove Azure MacOS CI build (#10231) 2022-02-15 15:27:41 -07:00
Chris MarslenderandGitHub 20a7078960 Update the GHA build for intel mac to work as the primary release workflow (#10232)
* Update the GHA build for intel mac to work as the primary release workflow

* Add dev hash logic to GHA version of intel mac installer
2022-02-15 15:27:31 -07:00
Kyle AltendorfandGitHub c231ad449b Merge pull request #10218 from Chia-Network/add_timestamp_to_singleton
Add timestamp to singleton
2022-02-15 16:52:42 -05:00
Kyle AltendorfandGitHub cec85c66f2 Merge pull request #10164 from Chia-Network/atari_wallet_rebasing
Add automatic rebasing and conflict handling to DL Wallet
2022-02-15 15:53:00 -05:00
Kyle AltendorfandGitHub ffb2733b84 Merge pull request #10243 from Chia-Network/atari-setuptools_ban
Ban setuptools 60.9.1
2022-02-15 15:45:17 -05:00
Matt Hauff 598b5696a7 Acquire lock during update RPCs 2022-02-15 13:32:36 -07:00
Kyle AltendorfandGitHub 220e845d51 shutdown the weight proof process pool (#10163)
* shutdown the weight proof process pool

* use a context manager for the weight proof process pool executor

* record of the debug code

* mostly cleaned up

* suppress sync task cancellation propagation when awaited while closing

* breakup multi-second WeightProofHandler.validate_weight_proof with async sleeps

* move awaiting of sync task until after existing cancellation

* properly handle shutdown file with a new instance each time and a context manager

* cleanup
2022-02-15 12:22:23 -08:00
almog 1abe5b9606 add timestamp to singleton 2022-02-15 21:22:54 +02:00
Florin Chirica df00605837 Change randomness function. 2022-02-15 20:48:15 +02:00