Commit Graph
14659 Commits
Author SHA1 Message Date
Kyle AltendorfandGitHub 46126d47b3 Re-enable the trusted parametrization of test_address_sliding_window() (#10081) 2022-11-11 16:39:49 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7e1234bc65 Bump cryptography from 36.0.2 to 38.0.3 (#13871)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-11 16:37:57 -06:00
e29fcaaa01 Adding new PR template, release note config, label exclusion (#13802)
* Adding new templates

* Scoping permissions of third party action

* Modifying label names

* 'Mojifying job name

* Cant parse emojis 😭

* Modified -> Changed

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Jeff <jeff@chia.net>

* Adjusting PR template format

* Adding merging notes to PR template

* Fixing whitespace

Co-authored-by: Jeff <jeff@chia.net>
1.7.0-b1
2022-11-10 23:03:26 -06:00
Kyle AltendorfandGitHub 5cf8a291f7 adjust approach to optionality around ApiMetadata (#13888) 2022-11-10 19:58:12 -06:00
Kyle AltendorfandGitHub a9c9f83ded chiavdf==1.0.8 (#13805)
https://github.com/Chia-Network/chiavdf/compare/1.0.7..1.0.8

The inspiration specifically is that 1.0.7 has a single threaded `mpir.dll` included.  This was being trompled by the multithreadded copy from `blspy` in normal installs.  Over in the poetry PR the ordering was different resulting in failures.  https://github.com/Chia-Network/chia-blockchain/actions/runs/3382221967/jobs/5616952939
2022-11-10 19:56:25 -06:00
dustinfaceandGitHub 978c3708aa Catch exceptions raised when resolving plot directories (#13786)
* plotting: Catch exceptions raised when resolving plot directories

* `try/except/else` -> `try/except/continue`
2022-11-10 19:49:31 -06:00
Kyle AltendorfandGitHub 15111cf196 use install action in checks and upload workflow (#13846)
* use install action in checks and upload workflow

* correct python version specification
2022-11-10 14:05:37 -06:00
Kyle AltendorfandGitHub 09f89c0257 create tasks for stopping services (#13848)
(cherry picked from commit 3384714f2e3e0bdc8c3d3741027e9e4fb69a6002)
(cherry picked from commit 855b5d1a96)
2022-11-10 14:03:42 -06:00
Matt HauffandGitHub a29ab7dbd1 Fix trades between fungible assets <-> fungible assets + nfts (#13825)
* Fix fungible <-> fungible + royalties

* lint
2022-11-10 14:00:33 -06:00
Matt HauffandGitHub ba6a5a3b63 Create royalty payments in fewer coins (#13858)
* Create royalty payments in fewer coins

* flake8

* mypy
2022-11-10 03:04:52 -06:00
Jack NelsonandGitHub 72e83181cb add target_coin amount to coin selection cli (chia wallet coins) (#13716)
* add target_coin ammt to wallet coin combine func

* fix slight bugs
2022-11-10 03:03:59 -06:00
dustinfaceandGitHub 0befdec071 server: Introduce WSChiaConnection._get_extra_info (#13876) 2022-11-09 17:41:50 -06:00
dustinfaceandGitHub 50b630aee9 server: Don't pass the queue into WSChiaConnection._wait_and_retry (#13877) 2022-11-09 14:57:59 -06:00
dustinfaceandGitHub 8394857ca2 server: Return earlier in WSChiaConnection.__getattr__ (#13875)
* server: Return earlier in `WSChiaConnection.__getattr__`

* Tweak message names
2022-11-09 14:19:43 -06:00
dustinfaceandGitHub 0e5168b3cf util: Hint ApiMetadata.message_class with Optional[Type[Streamable]] (#13870)
* util: `message_class: Optional[Any]` -> `message_class: Any` 

Im working towards more strict mypy in `chia.server.ws_connection` and 
this change helps there while (i think) it still retains the same 
behaviour.

* Make it `Optional[Type[Streamable]]`
2022-11-09 14:19:06 -06:00
Adam KellyandGitHub ecb413d888 Remove incorrect log warning message. (#13857)
Remove incorrect log warning message. The Bitcoin fee estimator is designed to ignore calling remove_tx multiple times for the same tx.
2022-11-09 14:18:38 -06:00
dustinfaceandGitHub d3e1698cc8 util: Some cleanups for the memory profiler (#13809)
* Make `CallInfo` and `Frame` a `dataclass` and move them to the top level

* Use `click` in `memory_profiler.py`

* Move `mem_profile_task` into `chia.util.profiler`

* Move `chia.util.memory_profiler.py` to `tools/analyze_memory_profile.py`

* Implement `Frame.add`
2022-11-09 14:17:43 -06:00
wjblankeandGitHub 5c38a39077 upped the number of file handles for madmax (#13856)
* upped the number of file handles. this won't affect the hard limit but only soft limits set previously

* Set soft limit to max (hard limit)
2022-11-09 03:31:51 -06:00
Sebastjan TrepcaandGitHub 962ad8abeb [#13737] added total balance check, updated error messages (#13866)
added total balance check, updated messages
2022-11-08 21:52:32 -06:00
dustinfaceandGitHub 24961dd02c server: Drop some unused code (#13867)
* Drop unused `Delivery` enum

* Drop unused `get_outgoing_connections`

* Drop `connection_utils.py`
2022-11-08 18:04:56 -06:00
Kronus91andGitHub 35d5858a06 Add verify signature API (#13732)
* Add verify signature API

* Refine response

* Resolve comment

* fix pre-commit
2022-11-08 10:23:06 -06:00
dustinfaceandGitHub 50d148eadd Cleanup WSChiaConnection imports/usage (#13868) 2022-11-08 10:10:59 -06:00
Matt HauffandGitHub e5f7232098 Search for launcher with correct spent_height (#13827)
* Search for launcher with correct spent_height

* Remove unecessary assert

* Add a PRIMARY KEY to the retry store
2022-11-08 00:04:18 -06:00
Kyle AltendorfandGitHub 4a2acd7d3d correct gui pin after checkpointing slip-up (#13841)
* correct gui pin after checkpointing slip-up

I forgot to make sure that the checkpoints for gui bump PRs used the
commit that was the result of checkpointing that commit in the GUI
repo.

* update
2022-11-07 22:07:01 -06:00
Kyle AltendorfandGitHub 095b9c337e adjustments for new mypy (#13859)
* adjustments for new mypy

* assert something
2022-11-07 17:38:40 -06:00
William AllenandGitHub 304f7ef447 Fixing test Arch install (#13850) 2022-11-07 12:00:38 -06:00
Kyle AltendorfandGitHub cff8efff2b SQLite log the full node db version check (#13755)
* SQLite log the full node db version check

* Update full_node.py
2022-11-07 09:07:32 -06:00
Kyle AltendorfandGitHub 8ff73e961a add LimitedSemaphore (#13642)
* treat Semaphore._waiters as length zero when it is None

We access the `._waiters` private attribute of the Python asyncio
`Semaphore` class.  This was changed in Python 3.10.8 (and other versions)
to be initialized to `None` instead of an empty deque.  Our existing
unconditional length checks failed on the new `None` default.  This seems
to block syncing.

https://github.com/python/cpython/pull/97020

https://github.com/python/cpython/compare/v3.10.7..v3.10.8#diff-0fee1befb15023abc0dad2623effa93a304946796929f6cb445d11a57821e737

Reported traceback:
```python-traceback
2022-10-12T20:03:59.367 full_node full_node_server : INFO Connected with full_node {'host': '65.34.144.6', 'port': 8444}
2022-10-12T20:03:59.370 full_node full_node_server : ERROR Exception: object of type 'NoneType' has no len(), {'host': '65.34.144.6', 'port': 8444}. Traceback (most recent call last):
File "/home/summa/chia-blockchain/chia/server/server.py", line 598, in wrapped_coroutine
result = await coroutine
File "/home/summa/chia-blockchain/chia/full_node/full_node_api.py", line 114, in new_peak
waiter_count = len(self.full_node.new_peak_sem._waiters)
TypeError: object of type 'NoneType' has no len()

2022-10-12T20:03:59.371 full_node full_node_server : ERROR Exception: object of type 'NoneType' has no len() <class 'TypeError'>, closing connection {'host': '65.34.144.6', 'port': 8444}. Traceback (most recent call last):
File "/home/summa/chia-blockchain/chia/server/server.py", line 608, in api_call
response: Optional[Message] = await asyncio.wait_for(wrapped_coroutine(), timeout=timeout)
File "/usr/lib/python3.10/asyncio/tasks.py", line 408, in wait_for
return await fut
File "/home/summa/chia-blockchain/chia/server/server.py", line 605, in wrapped_coroutine
raise e
File "/home/summa/chia-blockchain/chia/server/server.py", line 598, in wrapped_coroutine
result = await coroutine
File "/home/summa/chia-blockchain/chia/full_node/full_node_api.py", line 114, in new_peak
waiter_count = len(self.full_node.new_peak_sem._waiters)
TypeError: object of type 'NoneType' has no len()

2022-10-12T20:03:59.487 full_node full_node_server : INFO Connection closed: 65.34.144.6, node id: 506fe4c05ce6b72bb707471842e552307c7a547aa9ba981175db5c08fa3e47e6
```

* add LimitedSemaphore
2022-11-06 11:38:25 -06:00
Chida82andGitHub bc6371aa83 add strem like procedure and log progress (#13828) 2022-11-05 17:51:17 -05:00
Arvid NorbergandGitHub 985f170383 remove unused unwrap() function (#13818) 2022-11-05 17:50:56 -05:00
7b781cbf12 add_private_key now returns the fingerprint of the added key (#13814)
* add_private_key now returns the fingerprint of the added key
Updated tests

* Addressed feedback

* Update tests/core/daemon/test_daemon.py

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

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-11-05 17:49:29 -05:00
hugepantsandGitHub 1220fcfd69 Revert rate limiting messages from warning back to debug (#13758)
In 1.5.1 this was changed from `debug` to `warning` causing a lot of excess noise in default logging as reported in https://github.com/Chia-Network/chia-blockchain/issues/13132
2022-11-05 17:48:07 -05:00
Kyle AltendorfandGitHub cb0fbe3208 switch to context manager for task timing (#13473) 2022-11-05 17:46:40 -05:00
William AllenandGitHub d36e1161b4 Merge pull request #13836 from Chia-Network/checkpoint/main_from_release_1.6.1_0759bc7d4c3cebf211b14e796f6af153b1ed6022
checkpoint: into main from release/1.6.1  @ 0759bc7d4c
2022-11-05 17:42:06 -05:00
Amine Khaldi 14ab6a3388 Merge commit '0759bc7d4c3cebf211b14e796f6af153b1ed6022' into checkpoint/main_from_release_1.6.1_0759bc7d4c3cebf211b14e796f6af153b1ed6022 2022-11-05 20:50:17 +01:00
William AllenandGitHub c64d6f11b1 Merge pull request #13835 from Chia-Network/checkpoint/main_from_release_1.6.1_0ab3cd76661eae9623ab47af6a88a2af76f91ccb
checkpoint: into main from release/1.6.1  @ 0ab3cd7666
2022-11-05 14:49:25 -05:00
Amine Khaldi 33599bedde Merge commit '0ab3cd76661eae9623ab47af6a88a2af76f91ccb' into checkpoint/main_from_release_1.6.1_0ab3cd76661eae9623ab47af6a88a2af76f91ccb 2022-11-05 19:57:55 +01:00
William AllenandGitHub de92185524 Merge pull request #13832 from Chia-Network/checkpoint/main_from_release_1.6.1_58099b3b4df3d1dd3b8aea95aa52a3c088be7239
checkpoint: into main from release/1.6.1  @ 58099b3b4d
2022-11-05 13:29:36 -05:00
Amine Khaldi 5ce38488e3 Merge commit '58099b3b4df3d1dd3b8aea95aa52a3c088be7239' into checkpoint/main_from_release_1.6.1_58099b3b4df3d1dd3b8aea95aa52a3c088be7239 2022-11-05 12:47:53 +01:00
William AllenandGitHub 63fcfd8000 Fix missing bladebit install for DMG build job (#13829) 2022-11-04 21:01:43 -05:00
William AllenandGitHub dfe589d023 Merge pull request #13824 from Chia-Network/checkpoint/main_from_release_1.6.1_1bfe826e57215066c88dc8e953fc3930aa61a8ae
checkpoint: into main from release/1.6.1  @ 1bfe826e57
2022-11-04 17:33:18 -05:00
Amine Khaldi 5dbc4aaa54 Merge commit '1bfe826e57215066c88dc8e953fc3930aa61a8ae' into checkpoint/main_from_release_1.6.1_1bfe826e57215066c88dc8e953fc3930aa61a8ae 2022-11-04 21:00:58 +01:00
William AllenandGitHub 0bbd93f826 Merge pull request #13823 from Chia-Network/checkpoint/main_from_release_1.6.1_518106ebf847ee3cd6277ae04393302c9f03df0a
checkpoint: into main from release/1.6.1  @ 518106ebf8
2022-11-04 15:00:10 -05:00
Amine Khaldi d0bac635d3 Merge commit '518106ebf847ee3cd6277ae04393302c9f03df0a' into checkpoint/main_from_release_1.6.1_518106ebf847ee3cd6277ae04393302c9f03df0a 2022-11-04 18:47:50 +01:00
William AllenandGitHub bdf67607b4 Merge pull request #13821 from Chia-Network/checkpoint/main_from_release_1.6.1_0be5eccffa9c0fc5807aa03ac382893811d84105
checkpoint: into main from release/1.6.1  @ 0be5eccffa
2022-11-04 12:45:31 -05:00
Amine Khaldi 22be547df7 Merge commit '0be5eccffa9c0fc5807aa03ac382893811d84105' into checkpoint/main_from_release_1.6.1_0be5eccffa9c0fc5807aa03ac382893811d84105 2022-11-04 17:00:41 +01:00
Kyle AltendorfandGitHub 806499cb3f add task_instrumentation fixture (#13176)
* add task_instrumentation fixture

* fixup

* Update conftest.py
2022-11-03 23:14:21 -05:00
William AllenandGitHub 2b15e8e062 Merge pull request #13807 from Chia-Network/checkpoint/main_from_release_1.6.1_bfc35b796f16fe1af6ff322fc602b47ea016dffb
checkpoint: into main from release/1.6.1  @ bfc35b796f
2022-11-03 20:50:54 -05:00
William AllenandGitHub 0759bc7d4c Adding missing env value for osx torrent creation (#13813) 2022-11-03 19:12:31 -05:00
William AllenandGitHub 0ab3cd7666 Updating 1.6.1 changelog (#13810)
* Updating 1.6.1 changelog

* Removing RPC command that got reworked
1.6.1
2022-11-03 15:51:58 -05:00