Commit Graph
14659 Commits
Author SHA1 Message Date
Kyle AltendorfandGitHub 2ca2fd8a99 add -s passthrough for .github/actions/install/ (#16205)
* add -s passthrough for .github/actions/install/

* default to not doing system updates

* Update test-install-scripts.yml

* hmm

* Update action.yml

* Update test-install-scripts.yml
2023-08-31 15:15:09 -05:00
Amine KhaldiandGitHub a767c9b58e Adapt recent full sync tests to ConsensusMode (#16209)
Adapt recent full sync tests to ConsensusMode.
2023-08-31 15:14:57 -05:00
Amine KhaldiandGitHub 929fe7f359 Add some tests related to the state of the height-to-hash cache file (#16147)
* Add some tests related to the state of the height-to-hash cache file.

* Simplify checking the no difference case.

* Use Path.stat() where we don't need to read the file contents for comparison, just the size and mtime.

* Separate cache file tests into their own test functions.

* Use open instead of aiofiles, and delete from full_blocks instead of dropping the table and recreating it.

* Bring back content checking in the nothing new to write case.
2023-08-31 12:45:03 -05:00
Kronus91andGitHub 3a82aacbbe Prevent redundant peer calls in coin_added (#15735)
* Refine coin_added

* Resolve comments

* Fix assert

* Fix pre-commit

* Resolve comments

* Resolve comments

* Resolve comments

* Resolve comment

* Add todo

* Add generic

* resolve comment

* Fix cat

* Resolve comments

* Fix test
2023-08-31 12:42:30 -05:00
Earle LoweandGitHub 1463f0c84e override class variables in limits tests in order to speed up test (#16183)
override class variables to speed up test
2023-08-31 12:42:20 -05:00
Karlkim SuwanmongkolandGitHub 0a6719403e Add a full node RPC endpoint, get_mempool_items_by_coin_name (#16019)
* get_mempool_items_by_coin_name

* use match parameter to check exception value
2023-08-31 12:17:20 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b02fdfae0a build(deps): bump filelock from 3.12.2 to 3.12.3 (#16192)
Bumps [filelock](https://github.com/tox-dev/py-filelock) from 3.12.2 to 3.12.3.
- [Release notes](https://github.com/tox-dev/py-filelock/releases)
- [Changelog](https://github.com/tox-dev/filelock/blob/main/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/py-filelock/compare/3.12.2...3.12.3)

---
updated-dependencies:
- dependency-name: filelock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-31 12:07:48 -05:00
Amine KhaldiandGitHub 4c592f209f Optimize and simplify farmer RPC get_signage_point() (#15472)
Optimize and simplify farmer RPC get_signage_point().
2023-08-31 12:05:42 -05:00
Amine KhaldiandGitHub 33c923034e Rename Mode enum to ConsensusMode (#15794)
Rename Mode enum to ConsensusMode.
2023-08-31 12:05:25 -05:00
Chris MarslenderandGitHub 9b12032494 Fix var syntax on glue notifications for windows (#16202) 2023-08-31 10:32:48 -05:00
Almog De PazandGitHub d966f3f9e6 Add bad peak cache (#16027)
* add and check bad peak hash

* move check

* refactor, add tests, change cache to Dict

* pr fixes

* fix bad f-string

* refactor chip-0013 errors

* limit cache size, add size to constants

* test cache invalidation fix invalidation bug

* fix off by one

* move cache size to config

* remove bt conf override

* use get_peers_with_peak

* fix expected exception in test_soft_fork4_activation
2023-08-30 13:27:22 -05:00
Kyle AltendorfandGitHub 4ba48af7a5 DataLayer fingerprint control (#16132)
* preliminary DataLayer fingerprint control implementation

* add cli and tests

* tidy

* catch up with `@pytest.mark.limit_consensus_modes`

* drop unneeded limit consensus modes

* deal with todos
2023-08-30 13:27:01 -05:00
Chris MarslenderandGitHub 78792a7230 Update to new notarytool (#16189)
* Remove notary-cli dependency

* Update to the new notarization method

* Add apple team id to the notarize command
2023-08-30 11:29:22 -05:00
Matt HauffandGitHub 6af4f86171 Add extra_conditions as an option to transaction endpoints (#15911)
Add extra_conditions as an argument to all transaction methods
2023-08-29 13:48:16 -05:00
Arvid NorbergandGitHub 05500ea840 fix waiting for co-routines in plotters_util.py (#16184) 2023-08-29 13:47:38 -05:00
Arvid NorbergandGitHub ec9d0096f4 demote log level for TIMESTAMP_TOO_FAR_IN_FUTURE errors (#16101) 2023-08-29 13:46:57 -05:00
Don KackmanandGitHub 7ad7713b1f type mismatch for last_time_farmed (#16159) 2023-08-29 13:39:37 -05:00
Amine KhaldiandGitHub a07a565096 Annotate test_block_height_map.py (#16181)
Annotate test_block_height_map.py.
2023-08-29 13:23:22 -05:00
Arvid NorbergandGitHub fd541bd40d simplify a test the no longer needs to cover pre-soft-fork2 cases (#16185) 2023-08-29 13:23:09 -05:00
Earle LoweandGitHub 58d6acb263 Improve wallet rpc test consistency (#16138) 2023-08-28 18:04:02 -05:00
Earle LoweandGitHub 66877fa063 increase windows pytest threads to 3 (#16139) 2023-08-28 18:03:52 -05:00
Kyle AltendorfandGitHub a61c0961a7 @pytest.mark.limit_consensus_modes (#16148)
* `@pytest.mark.plain_consensus_only`

* add reasons

* tidy

* report them all

* remove unneeded usage

* not quite, but adjusting

* mark the test

* backup

* todos for fixtures for now

* maybe...

* limit_consensus_modes

* allow (and specify) multiple modes to limit to

* remove exploratory fixture implementation
2023-08-28 16:59:48 -05:00
xchdata.ioandGitHub 254f52f91f Fix comment typo (#16175)
`time_taken` is computed using `time.time()`. `time.time()` returns a
timestamp in (fractional) seconds. Multiplying seconds by 1_000_000
results in microseconds, not nanoseconds.
2023-08-28 16:10:00 -05:00
JeffandGitHub c85baab9f6 Add get_public_key and get_public_keys daemon RPCs (#16156) 2023-08-28 10:18:38 -05:00
Florin ChiricaandGitHub 3584b3ba7a Improve testnet connectivity. (#16029)
* Improve testnet connectivity.

* Lint.
2023-08-25 20:24:16 -05:00
Matt HauffandGitHub 988d3bb968 Add flags to CR-CAT offer summary (#16131)
* Add flags to CR-CAT Offer Summary

* Fix typo
2023-08-25 15:13:47 -05:00
Kyle AltendorfandGitHub 0c525f6169 create and upload individual and combined junit reports (#16149)
* create and upload individual and combined junit reports

* sudo

* debug

* fixup

* fixup

* data vs. results

* debug

* pretty format xml

* try again on formatting

* Update test.yml

* blah

* yq

* again

* swap

* Revert "debug"

This reverts commit ea6f7447c3.

* Revert "debug"

This reverts commit e0d1f64d33.

* tidy
2023-08-25 13:12:50 -05:00
William AllenandGitHub 0dde80b89a checkpoint: into main from release/2.0.0 @ dc46f46b9a (#16153)
Source hash: dc46f46b9a
Remaining commits: 0
2023-08-24 21:04:37 -05:00
Amine Khaldi d5bc292c98 Merge commit 'dc46f46b9a30628b208d38fd7dd0ca085e820781' into checkpoint/main_from_release_2.0.0_dc46f46b9a30628b208d38fd7dd0ca085e820781 2023-08-24 21:17:52 +01:00
William AllenandGitHub 8eb9a013bb checkpoint: into main from release/2.0.0 @ 9c1d285091 (#16150)
Source hash: 9c1d285091
Remaining commits: 1
2023-08-24 15:16:20 -05:00
dustinfaceandGitHub 22e4a5f9f3 full_node: Drop unused get_fork_point_no_validations (#16107) 2023-08-24 12:38:35 -05:00
dustinfaceandGitHub 3b20b4a2f0 full_node: More use of FullNode.get_peers_with_peak (#16045) 2023-08-24 12:38:22 -05:00
dustinfaceandGitHub 2e18f904dd wallet: Fix comment in WalletNode.validate_received_state_from_peer (#16037) 2023-08-24 12:38:05 -05:00
Kyle AltendorfandGitHub b5ea010dd4 Fix black pre-commit config (#16143)
https://github.com/psf/black/blob/d9c249c25a77f75e70278aab9ec65c10ce08b0a8/.pre-commit-hooks.yaml#L9

https://pre-commit.com/#hooks-require_serial
2023-08-24 12:37:15 -05:00
Amine Khaldi 10cc56f7c9 Merge commit '9c1d28509179bac89fb6831803d939897acd47da' into checkpoint/main_from_release_2.0.0_9c1d28509179bac89fb6831803d939897acd47da 2023-08-24 18:21:01 +01:00
William AllenandGitHub bd9a0774d9 checkpoint: into main from release/2.0.0 @ 9093c4013b (#16146)
Source hash: 9093c4013b
Remaining commits: 2
2023-08-24 12:19:11 -05:00
William AllenandGitHub 8e3efdd268 fix CHANGELOG.md 2023-08-24 12:07:55 -05:00
Amine Khaldi f464293bb8 Merge commit '9093c4013b67ab7cae8d50493ff8fdeaf9ac712a' into checkpoint/main_from_release_2.0.0_9093c4013b67ab7cae8d50493ff8fdeaf9ac712a 2023-08-24 13:55:53 +01:00
William AllenandGitHub dc46f46b9a bumping date (#16145)
Update CHANGELOG.md
2.0.0
2023-08-24 04:49:36 -05:00
Florin ChiricaandGitHub 0e5f9eceea Print JSON for all DL commands. (#16119)
* Print JSON for all DL commands.

* Lint.

* Sort keys.
2023-08-24 02:30:02 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
cb9ad8241a build(deps): bump aiofiles from 23.1.0 to 23.2.1 (#16056)
Bumps [aiofiles](https://github.com/Tinche/aiofiles) from 23.1.0 to 23.2.1.
- [Release notes](https://github.com/Tinche/aiofiles/releases)
- [Commits](https://github.com/Tinche/aiofiles/compare/v23.1.0...v23.2.1)

---
updated-dependencies:
- dependency-name: aiofiles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 23:06:26 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b1a5b266c3 build(deps-dev): bump coverage from 7.2.7 to 7.3.0 (#16057)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.7 to 7.3.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.7...7.3.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 23:05:29 -05:00
Kyle AltendorfandGitHub 538edfd6b8 Do not enable seeder signal handlers in tests (#16079) 2023-08-23 23:04:56 -05:00
Kyle AltendorfandGitHub 39cf13288e tidy the DataLayer._update_confirmation_status() usage pattern (#16094)
tidy the `DataLayer._update_confiration_status() usage pattern
2023-08-23 23:03:25 -05:00
Arvid NorbergandGitHub ccd715119e try again a few times if the temporary DB file can't be removed (#16108)
try again a few times if the temporary DB file can't be removed, during simulation shutdown
2023-08-23 23:02:52 -05:00
778203033a CA Cert updates (#16129)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-08-23 22:56:08 -05:00
Amine KhaldiandGitHub fa762fe945 Use pytest's monkeypatch fixture instead of unittest's MagicMock (#16130)
Use pytest's monkeypatch fixture instead of unittest's MagicMock.
2023-08-23 22:55:27 -05:00
Earle LoweandGitHub 9c1d285091 Make sure to sign all EXEs (#16141)
* Make sure to sign all EXEs

* type dev->dir

* Adjust code to sign all EXEs
2023-08-23 17:50:36 -05:00
9093c4013b Adding 2.0.0 changelog (#16133)
* Adding 2.0.0 changelog

* Update CHANGELOG.md

* For pre-commit

* remove links

* whitespace

* Remove chip13

* More removals

---------

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2023-08-23 17:37:06 -05:00
Matt HauffandGitHub 8639a91fc5 Change NFT tests to cover bulk transfer/DID set of multiple NFTs at once (#16091)
* Change NFT tests to cover bulk transfer/DID set of multiple NFTs at once

* Fix flakiness
2023-08-21 23:30:41 -05:00