Commit Graph
14659 Commits
Author SHA1 Message Date
Matt HauffandGitHub d09b3a8207 Fix set_status accidental arg (#16860) 2023-11-20 10:40:20 -06:00
Amine KhaldiandGitHub 6f3f54c974 Speedup and simplify test_mempool_update_performance (#16848) 2023-11-20 09:42:56 -06:00
Kyle AltendorfandGitHub 410f328c15 cleanup assertions of True and False (#16874) 2023-11-20 09:42:06 -06:00
wjblankeandGitHub 886e79be2b get_block_generator() fork detection (#16867)
### Purpose:

fix logic in get_block_generator() that determines whether we're looking
up a block from a fork or the main chain.

### Current Behavior:

We only consider a block lookup to be in the main chain if its previous
block is in *the cache*.

### New Behavior:

We consider block lookups part of the main chain if the previous block
is in the database and its hash is the same as the height-to-hash map
for that height.

### testing

This change was tested by issuing the following RPC command:

```
chia rpc full_node get_puzzle_and_solution '{"coin_id": "0xdc43c91390490b8bbec628bf3c0c2388578548c1889f0ea40c6cfc8fac409947", "height": 280858}'
```

in `main` this freezes with this patch it returns the result quickly.
2023-11-18 14:20:22 -08:00
arvidn 1a10172a7c fix logic in get_block_generator() that determines whether we're looking up a block from a fork or the main chain 2023-11-17 23:49:11 +01:00
Arvid NorbergandGitHub 5ab1721cff clean up SpendBundle class (#16808) 2023-11-16 19:21:28 -06:00
Kyle AltendorfandGitHub fbdb27bef1 managers for services (#16670) 2023-11-16 19:21:12 -06:00
Kyle AltendorfandGitHub 5484024ef3 move time_out_assert() family back to tests (#16846) 2023-11-16 11:20:18 -06:00
Zachary BrownandGitHub ddadd8c664 Change -h to -k for --key flag for datalayer get_value cli command (#16843)
Change -h to -k for key flag for get_value cli command
2023-11-16 09:40:17 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4c8c1b89d0 build(deps): bump boto3 from 1.28.79 to 1.29.0 (#16839)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:39:35 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7200eaf4b9 build(deps-dev): bump black from 23.10.1 to 23.11.0 (#16836)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:05:29 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c880203824 build(deps-dev): bump types-setuptools from 68.2.0.0 to 68.2.0.1 (#16834)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:05:21 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4698612eae build(deps-dev): bump diff-cover from 8.0.0 to 8.0.1 (#16833)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:04:57 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
a4e5b46ab8 build(deps-dev): bump pytest-xdist from 3.3.1 to 3.4.0 (#16832)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 13:04:28 -06:00
Amine KhaldiandGitHub ee7aa96d20 Simplify a test for mempool manager's new_peak (#16796) 2023-11-15 13:04:14 -06:00
Arvid NorbergandGitHub 038f5e8fb7 Fix deep reorgs (#16594) 2023-11-15 10:51:04 -06:00
Amine KhaldiandGitHub d619b7cf86 Fix silently failing to submit a transaction in test_mempool_update_performance (#16828) 2023-11-15 09:16:53 -06:00
Kyle AltendorfandGitHub e0d0edacfc add reviewers to be assigned for dependabot PRs (#16838) 2023-11-15 09:15:20 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Kyle Altendorf
e986d1e3ee build(deps-dev): bump mypy from 1.5.1 to 1.7.0 (#16788)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-11-14 12:20:56 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
de0328bdfb build(deps-dev): bump coverage from 7.3.0 to 7.3.2 (#16790)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 12:17:48 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f06259be58 build(deps-dev): bump types-setuptools from 68.0.0.3 to 68.2.0.0 (#16791)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 12:17:42 -06:00
Arvid NorbergandGitHub d127353030 Fix mypy types (#16807) 2023-11-14 09:28:30 -06:00
Kyle AltendorfandGitHub a64dd20f06 increase tests.core.full_node timeouts (#16824) 2023-11-14 08:00:58 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7aaa32e885 build(deps): bump boto3 from 1.28.65 to 1.28.79 (#16789)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 14:38:02 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d07a238bc0 build(deps): bump axios from 1.4.0 to 1.6.1 in /build_scripts/npm_linux (#16811)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 11:41:17 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1be6c6a26a build(deps): bump axios from 1.4.0 to 1.6.1 in /build_scripts/npm_macos (#16810)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 11:41:06 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1a2e1628f3 build(deps): bump axios from 1.4.0 to 1.6.1 in /build_scripts/npm_windows (#16809)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 11:40:54 -06:00
Amine KhaldiandGitHub b275aee485 Make get_temp_keyring not async (#16818) 2023-11-13 08:58:29 -06:00
Brandon ButlerandGitHub 31b60e51f7 Add check to github jwt step in other workflows that call github-glue (#16806) 2023-11-09 13:26:13 -08:00
Arvid NorbergandGitHub fe3799b1ea request blocks in batches of 32 instead of 33 (#16792)
request blocks in batches of 32 instead of 33 (with the last block overlapping with the next request). Add comments to document a quirk in how we interpret the block range in the block request message.
2023-11-09 12:14:15 -08:00
Brandon ButlerandGitHub 7c37a916cc Add check to github jwt step in publish rpm job (#16803) 2023-11-09 12:00:24 -08:00
Amine KhaldiandGitHub d054314a18 Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package (#16752)
Move generate_in_memory_db_uri to the chia/util to avoid importing tests from the chia package.
2023-11-09 09:04:03 -08:00
Arvid NorbergandGitHub 66d83db23b Fix invalid sync request (#16779) 2023-11-09 08:25:54 -08:00
Arvid NorbergandGitHub 23dfcd85ac reduce redundant calls to compute the header hash (#16797)
* reduce redundant calls to compute the header hash for FullBlocks in multiprocess_validation

* test_long_reorg_nodes() still seem to take longer on CI sometimes
2023-11-08 16:17:05 -08:00
Arvid NorbergandGitHub 5a1c15e20b Fix peak height race (#16776)
when we add a block, there's a subtle co-routine suspension point in between updating the height-to-hash map and the peak height. This leaves a window for a call to get_peak() to fail, because the peak height doesn't exist in height-to-hash map. This patch moves the suspension point to make these updates atomic. This allows for removing a hack in a test, that previously had to catch this exception
2023-11-08 08:41:40 -08:00
Earle LoweandGitHub 206b5c5185 Fix problems with wallet node discovery (#16782)
* Fix problems with wallet node discovery

* Adjust tests to work more consistently

* Attempt to debug rate limit test

* Limit rate test to one consensus mode
2023-11-08 08:40:21 -08:00
Arvid NorbergandGitHub 64d6fb56a6 simplify the interface to mempool_manager.new_peak() (#16787)
simplify the interface to mempool_manager.new_peak() to just take the spent coin IDs rather than full NPCResult objects
2023-11-07 10:40:16 -08:00
Matt HauffandGitHub eabeac82b4 Port trade test to WalletTestFramework (#16293) 2023-11-07 09:50:22 -08:00
Arvid NorbergandGitHub d2c2b91b30 add test performing a deep reorg with 3 nodes (#16774)
* increase test_constant BLOCKS_CACHE_SIZE to fit 3 epochs, to better mimic mainnet

* add test performing a deep reorg with 3 nodes, along with various fixes to make it work
2023-11-07 09:08:54 -08:00
Arvid NorbergandGitHub 95e5b97557 Use bls from chia rs (#16715)
* replace blspy imports with chia_rs imports for BLS types

* remove blspy-stubs, since we're dropping the blspy dependency. chia_rs has type stubs already
2023-11-07 09:06:52 -08:00
Kyle AltendorfandGitHub a53652cfda use "${GITHUB_WORKSPACE}" for windows bash installer publish (#16769) 2023-11-06 07:02:33 -06:00
Arvid NorbergandGitHub 962233137b make sure we set max_sync_wait to 0 in all tests (#16771) 2023-11-06 07:02:12 -06:00
Kyle AltendorfandGitHub 95ed41da94 more time for plot refreshing in ci (#16762) 2023-11-03 11:36:01 -05:00
Kyle AltendorfandGitHub ffe20da303 fixup pylint confusion (#16716) 2023-11-03 11:35:37 -05:00
Matt HauffandGitHub bf4cdf22a5 Port VC lifecycle tests to WalletTestFramework (#16292) 2023-11-03 08:30:59 -05:00
Geoff WalmsleyandGitHub c2b35009de fix flaky dao tests (#16740) 2023-11-03 08:30:41 -05:00
JeffandGitHub c908b25925 Updating GUI pin to 23a4baa6a47af87937e0825d4fdc75109fe1aa7a for latest fixes (#16751) 2023-11-02 13:05:27 -05:00
Kyle AltendorfandGitHub 704e876386 use bash for Windows publish job (#16607) 2023-11-01 20:57:38 -05:00
Chris MarslenderandGitHub d9b331909a Update usages of GithHub Glue to authenticate w/ jwt token (#16749) 2023-11-01 15:44:33 -05:00
b1bdbc40ab use anyio for tests (#16738)
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2023-11-01 13:04:27 -05:00