100 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub 433424f4ab [CHIA-4356] New full block format and cost model (#21249) 2026-08-19 07:51:29 -07:00
Arvid NorbergandGitHub 37f65e04ca [CHIA-4344] improve mempool's atom- and pair-count awareness (#21276)
* improve mempool's atom- and pair-count awareness

* address review comments
2026-08-17 11:34:46 -07:00
Arvid NorbergandGitHub 621265b9c4 bump chia-rs to 0.46.0 (#21117)
* bump chia_rs to 0.46.0

* support new FullBlock and UnfinishedBlock format

* remove v2 plot filter constants. the v2 plot filter is being replaced
2026-07-29 13:25:58 -05:00
Arvid NorbergandGitHub fe15e9ee6f [CHIA-4326] enable redundant expressions check in mypy (#21143)
* fix type annotation in configure.py and init.py

* enable mypy redundant-expr and remove redundant expressions
2026-07-29 09:37:24 -05:00
Arvid NorbergandGitHub 2cee412445 [CHIA-4308] add a proper run-time check for spends that are eligible for fast for… (#21119) 2026-07-27 13:50:18 -07:00
Arvid NorbergandGitHub 22ef7c3d6e download blocks and plots once and share them between tests (#21079) 2026-07-16 12:18:04 -07:00
Arvid NorbergandGitHub c95e936a01 if a dedup spend doesn't make it into the block, restore the dedup state (#21115)
* if a dedup spend doesn't make it into the block, restore the dedup state

* review comments
2026-07-16 10:16:18 -07:00
Arvid NorbergandGitHub ad54206f00 fix flaky DoS test (#21093) 2026-07-08 15:04:09 -05:00
Arvid NorbergandGitHub 318588a7e9 factor out the sync pipeline (#21027)
* factor out the sync pipeline (fetch, validate and DB-insert) into a generic pipeline and simpler functions for each step

* review comments

* review comment

* review comment
2026-07-02 07:48:59 -07:00
Arvid NorbergandGitHub 8878b56ccb bump chia_rs to 0.45.1 (#21068)
* bump chia_rs to 0.45.1

* fix issue in test_spam_message_too_large

* allow a few more warnings that can be triggered because our tests leak aiohttp websocket clients

* fix flaky test: test_transaction_ack_duplicate_without_resend_ignored
2026-07-02 07:47:57 -07:00
Arvid NorbergandGitHub a8570da515 add configuration option to advertize rate limits v3 support (#21025) 2026-06-25 09:31:35 -05:00
Arvid NorbergandGitHub b53f6c7942 Bump chia rs 0.45.0 (#20988)
* bump chia_rs to 0.45.0

* support parsing limited lists for rust types, using the new truncate() feature

* use the new, explicit, function to print private keys

* review comment

* review comments

* fix python import
2026-06-09 16:39:53 +01:00
Arvid NorbergandGitHub de5683cb77 fix running tests with a local keyring (#20964)
prevent tests from using the real keyring on the computer running the tests
2026-06-01 11:34:58 -07:00
Arvid NorbergandGitHub 4857f86251 [CHIA-4189] make it clear that bytes100 always is 100 bytes long (#20960) 2026-05-29 08:05:24 -07:00
Arvid NorbergandGitHub d7afd16321 Bump chia rs 0.44.0 (#20923)
* bump chia_rs

* updates to use and report any error message reported back from chia_rs

* bump test cache

* pass testnet to the proof-of-space functions

* review comments
2026-05-27 12:50:10 -05:00
Arvid NorbergandGitHub feffa2a672 fix monkeypatching in tests to not leak into other tests (#20933)
### Purpose:

It was not failing on CI because we run smaller groups of tests, but
when running all tests in a single command, there would be failures.

This PR also revertes a recent patch to mitigate this issue.

### Current Behavior:

when running command line/CLI tests, we would not restore the
monkeypatches. This caused later tests running in the same process to
fail.

### New Behavior:

`create_service_and_wallet_client_generators` takes a
`pytest.MonkeyPatch` parameter and uses `monkeypatch.setattr()` for all
5 patches. The conftest wraps
it in `pytest.MonkeyPatch.context()`, which handles save/restore
automatically.

### Testing Notes:

<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: test-only changes that adjust how monkeypatching is applied
and automatically reverted; main potential issue is missing a patch or
incorrect scoping causing CLI tests to fail.
> 
> **Overview**
> Fixes CLI command tests leaking monkeypatched RPC helpers into later
tests by changing `create_service_and_wallet_client_generators` to
accept a `pytest.MonkeyPatch` and applying patches via
`monkeypatch.setattr()`.
> 
> Updates the `get_test_cli_clients` fixture to wrap setup in
`pytest.MonkeyPatch.context()`, ensuring all patched functions (RPC
client generators and `cli_confirm`) are automatically restored after
the fixture exits, and removes now-unneeded test RPC methods (`log_in`,
`get_pool_login_link`) tied to those patches.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
08788c422d. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2026-05-26 10:13:23 -05:00
Arvid NorbergandGitHub 783fa71de4 [CHIA-4225] support treating old consensus constant names as the new ones (#20928)
support treating old consensus constant names as the new ones
2026-05-22 10:29:17 -05:00
Arvid NorbergandGitHub 6a5d0eb6c0 fix flaky tests (at least when run locally) (#20922) 2026-05-21 09:45:25 -05:00
Arvid NorbergandGitHub 05398e14ac fix error handling in chia plots check (#20875) 2026-05-12 10:52:05 -05:00
Arvid NorbergandGitHub 7a745dc1a3 Bump chia_rs to 0.42.1 (#20846)
* bump chia_rs to 0.42.1

* update calls to check_time_locks
2026-05-01 09:41:02 -05:00
Arvid NorbergandGitHub b541164ff1 [CHIA-3991] Wallet request protocol (#20806)
* use uint32 for transaction count

* update other parts of the wallet request protocol to use wider integers
2026-04-20 09:35:03 -05:00
Arvid NorbergandGitHub 38bb6d358d PriorityThreadPoolExecutor (#20742)
* add PriorityThreadPoolExecutor, use a dedicated thread for high priority work, to minimize latency

* use PriorityThreadPoolExecutor to validate UnfinishedBlocks and FullBlocks

* make MempoolManager use the new priority thread pool

* make FullNodeRpcApi use the new FullNode thread pool

* make FullNodeAPI use the new thread pool. This is mostly used for servicing the Wallet protocol. trusted wallets have higher priority (lower nice) and untrusted wallets have the lowest priority

* add instrumentation to PrioritizedThreadPoolExecutor
2026-04-15 09:30:04 -05:00
Arvid NorbergandGitHub e13a230207 Bump chia_rs to 0.42.0 (#20749)
* bump chia_rs to 0.42.0

* implement cost-per-spend after 3.0 hard fork

* update difficulty

* disable test_empty_sub_slots_epoch for HARD_FORK_3_0 as it seems we don't get any overflow blocks

* cache solve_proof() and get_qualities_for_challenge() results for tests
2026-04-15 09:29:17 -05:00
Arvid NorbergandGitHub 38ad30d9e7 speed up the long-reorg tests by disabling VDF- and signature validation (#20760)
speed up the long-reorg tests by disabling VDF- and signature validation of blocks
2026-04-02 09:58:09 -05:00
Arvid NorbergandGitHub 0434aedaf0 optimize handling of unfinished blocks (#20743) 2026-03-30 17:20:32 -05:00
Arvid NorbergandGitHub b5c5fc5d47 move NPCResults into tests (#20723)
move NPCResults into tests, and remove its use in production code. We have SpendBundleConditions which captures the non-error state of NPCResult
2026-03-26 15:26:53 -05:00
Arvid NorbergandGitHub 9aa2baac35 update chia_rs to 0.41.1 (#20714) 2026-03-24 22:59:43 -05:00
Arvid NorbergandGitHub cb82283cf6 don't ban peers for transactions that fail mempool checks (#20708)
don't ban peers for transactions that fail mempool checks, but may be valid otherwise
2026-03-24 17:35:57 -05:00
Arvid NorbergandGitHub 3b8a33da9f ignore unsolicited RespondTransaction (#20698)
* ignore unsolicited RespondTransaction

* add tests
2026-03-20 15:39:11 -05:00
Arvid NorbergandGitHub 481ccb3052 Mempool spend limit (#20703)
* add penalty to transactions with many spends, since we limit spends per block now

* evict mempool items based on priority as well

* fix test_limit_expiring_transactions
2026-03-20 15:02:08 -05:00
Arvid NorbergandGitHub 25c3f0dcab Update chia_rs dependency. (#20700)
* Update chia_rs dependency. This version introduces condition costs in the hard
fork. So the tests that compute block costs are being updated to match these
cost rules. It also introduces a spend limit in the 2.7.0 soft fork, and the
mempool is updated to not produce blocks exceeding this limit.

* ensure both MAX_SPENDS_PER_BLOCK checks are covered by the test
2026-03-20 11:01:52 -05:00
Arvid NorbergandGitHub c0c64d7e04 [CHIA-3963 CHIA-3955] early check of proof of space in a few places (#20685)
early check of proof of space in a few places
2026-03-19 11:46:20 -05:00
Arvid NorbergandGitHub 69ae3cf264 test parameterization cleanup (#20692)
since 2.6.0 and 2.7.0 will be the same soft-fork now, we don't need to test them separately
2026-03-19 11:45:32 -05:00
Arvid NorbergandGitHub 7a08fcaff8 Streamable.from_bytes() (#20682)
* Streamable.from_bytes() is currently failing with an assert when not all bytes are consumed. Promote it to a proper run-time error (it's not a programmer error)

* fixup LegacyCATInfo
2026-03-18 11:15:23 -05:00
Arvid NorbergandGitHub e10d9aed56 bump chia_rs dependency to 0.40.0 (#20666) 2026-03-17 10:43:37 -05:00
Arvid NorbergandGitHub 383e1d4897 bump chia_rs dependency to 0.39.0 (#20650)
bump chia_rs to 0.39.0
2026-03-13 09:49:56 -05:00
Arvid NorbergandGitHub 0638d558db [CHIA-3946] bump chia_rs to 0.38.2 (#20643)
bump chia_rs to 0.38.2
2026-03-11 10:14:15 -05:00
Arvid NorbergandGitHub aca4dbcc2e disable consensus mode parametrization on wallet tests, to save time (#20632) 2026-03-09 14:18:39 -05:00
Arvid NorbergandGitHub 1774049980 make the mempool a bit more defensive on slow machines (#20594)
* make the mempool a bit more defensive on slow machines

* add tests
2026-03-09 09:42:14 -05:00
Arvid NorbergandGitHub d5d886b49f [CHIA-3923] Chia rs new pos (#20567)
* update chia_rs dependency with the new ProofOfSpace type. use k-22 for v2 plots in simulator

* use new test cache

* review comments

* update test plots and chains to use k-20 for v2 plots, and only alternate between strength 2 and 3 (not 4)
2026-03-02 10:47:29 -06:00
Arvid NorbergandGitHub 73dbe1e5e6 [CHIA-3934] default to block creation 1 (#20578)
default to block creation 1
2026-03-02 09:12:44 -06:00
cc5acf288d Drop support for macos-13 and macos-14 (#20568)
* drop macos-13 and bump to macos-14

* use macos-15 everywhere

* don't sign python.framework

* go back to signing Python

* try adding --deep to codesign

* deep didn't work - try cp -a

---------

Co-authored-by: Earle Lowe <e.lowe@chia.net>
2026-02-27 12:38:57 -06:00
Arvid NorbergandGitHub 7ddc900bf7 return RejectAdditionsRequest to wallets instead of raising an exception (#20555)
* return RejectAdditionsRequest to wallets instead of raising an exception

* review comments
2026-02-27 12:38:42 -06:00
Arvid NorbergandGitHub e48de3871c improve the test that keep failing with TIMESTAMP_TOO_FAR_IN_PAST (#20573) 2026-02-27 09:46:53 -06:00
Arvid NorbergandGitHub f4e0d6fa46 Correct accounting of cost limits in offer summary computation (#20549) 2026-02-25 10:34:41 -06:00
Arvid NorbergandGitHub 64a52b9a16 harden full node store (#20539) 2026-02-23 11:07:59 -06:00
Arvid NorbergandGitHub f8d7efa7b3 reject unsolicited RespondCompactVDF messages (#20531)
* track compact VDF requests made to peers.
reject unsolicited RespondCompactVDF messages
use an LRUSet to cover timed-out requests that may show up late, but cap the size of requests we remember. If a peer is so slow in responding that its tracking is evicted, we disconnect the peer.

* review comments
2026-02-20 13:09:00 -06:00
Arvid NorbergandGitHub 65e29516ee refactor connection handshake (#20512)
* refactor ws connection handshake to unify incoming and outgoing paths. have some stricter checks

* review comment

* review comments
2026-02-19 16:17:19 -06:00
Arvid NorbergandGitHub 3696b49580 skip some especially expensive tests on MacOS Intel (#20535)
skip some especially expensive tests on MacOS Intel, as that is our slowest CI runner by far
2026-02-19 14:19:16 -06:00
dfc750b159 PoS2 integration [CHIA-3649][CHIA-3657][CHIA-3732][CHIA-3666] (#20414)
* bump chia_rs and make appropriate adjustments. The v2 PoS format has changed. There is no quality proof scan filter
bump test-cache blocks and test-plots

* add support for creating v2 plots in block_tools

* separate test chains into v1-plots, v1- and v2-mixed plots, and v2-only plots (after phase-out)

* (temporarily) disable running some tests with the 3.0 hard fork, until we fix them

* fix test_blockchain.py for the 3.0 hard fork chains

* Now that we have more test chains to run tests over (for PoS2), we'll need more time to run all the tests, on CI.

* remove comment about validating v2 plot cache entries when loading them. We can revisit this if it becomes a problem

* review

* fix tests

* fix long reorg

* readd todo

* remove usless todo

* fix comment

* long_reorg

* assert case exercised

* todo

* bump blocks-and-plots-version

* update lockfile

* fix overflow handling in test helper

* fix

* address cursor comments

* skip a few select tests on CI, to speed it up

---------

Co-authored-by: almogdepaz <almogdepaz@gmail.com>
2026-02-18 17:42:45 -06:00
Arvid NorbergandGitHub d7594688e9 fix reorg edge case handling in the wallet protocol (#20502) 2026-02-16 15:14:17 -08:00
Arvid NorbergandGitHub 507a2b858d update the fast FullBlock parser (#20458)
* update the fast FullBlock parser (that just skips fields) to support the new serialization of RewardChainBlock

* add test and shard the test, to enable it running in parallel

* disable expensive tests on MacOS Intel

* document some aspects of the full_blocks_utils test
2026-02-10 11:00:57 -08:00
Arvid NorbergandGitHub 062f6257e1 Blockchain does not have run_generator() (#20433)
Blockchain does not have run_generator(). In this test, these calls are never made, but just here in case something changes
2026-02-05 08:32:36 -08:00
Arvid NorbergandGitHub 3a43a87ece push out testnet 11 activation of soft-fork 8 (#20473) 2026-02-04 16:01:08 -08:00
Arvid NorbergandGitHub 8f8d27aca4 push out testnet11 soft fork activation height by 8 days (40000 blocks) (#20445) 2026-01-28 09:52:56 -08:00
Arvid NorbergandGitHub fd11d99f50 bump chia_rs to 0.35.2 (#20437) 2026-01-27 13:33:30 -08:00
Arvid NorbergandGitHub b7b3638fcc bump chia_rs to 0.35.1 (#20393) 2026-01-09 12:07:51 -08:00
Arvid NorbergandGitHub aefefb416e bump WEIGHT_PROOF_RECENT_BLOCKS for tests (#20348)
* increase WEIGHT_PROOF_RECENT_BLOCKS in the test constants, to make it more robust

* improve error message when WEIGHT_PROOF_RECENT_BLOCKS is too small

* fix test_wallet_blockchain.py

* fix test_wallet_node.py

* fix test_wallet_sync.py
2025-12-15 09:47:08 -08:00
Arvid NorbergandGitHub 64b2c8d034 update expected_plot_size() to match the latest proof of space format (#20350) 2025-12-15 09:45:49 -08:00
Arvid NorbergandGitHub 09654aebd0 cache master SK to local SK and pool SK key derivations (#20347)
cache master SK to local SK and pool SK key derivations in BlockTools and plot manager cache. This speeds up some tests
2025-12-12 09:29:38 -08:00
Arvid NorbergandGitHub 4aab40fe05 move test_constants_modified (#20342)
move test_constants_modified from test_simulation.py into conftest.py to avoid circular dependencies. conftest defines the test chains, which are built using the test constants. test_simulation.py uses the test chains
2025-12-10 19:07:29 -08:00
Arvid NorbergandGitHub d8144a94e0 optimize block tools (speed-up: 15x) (#20301)
optimize block tools by generating the block generator (for transaction_data=) up-front, rather than every time we farm a block, until we get a transaction block
2025-12-03 10:28:27 -08:00
Arvid NorbergandGitHub 426590feaf bump chia_rs and update uses of RewardChainBlock and SubEpochSummary (#20304) 2025-12-03 10:27:55 -08:00
Arvid NorbergandGitHub dcd296975d relax PoS validation in weight proofs (#20298)
* relax proof-of-space validation in weight proofs. make it height agnostic

* fix typo in block_tools logging. hoist calculations out of the block_tools PoS loop

* make the plot-filter schedule safe in proof-of-space validation as part of weight proofs

* review comments
2025-12-02 10:15:28 -08:00
Arvid NorbergandGitHub 9242a5cf4d remove use of pool_reward_puzzle_hash in full_node_simulator (#20294) 2025-11-25 11:59:36 -08:00
Arvid NorbergandGitHub b8c0e7712a fix plot filter for v2 plots (#20293) 2025-11-25 11:59:13 -08:00
Arvid NorbergandGitHub 7b3a773683 Test conditions pool reward (#20288)
* make test_conditions.py use the farmer reward, and not the pool reward, for its tests. This prepares this test to work with v2 plots, since they don't support redirecting the pool reward

* fix get_plot_id() for v2 proofs

* fix proof-of-space tests
2025-11-25 11:57:52 -08:00
Arvid NorbergandGitHub bc2a7f7319 default to single solver thread (#20266)
default to single solver thread (solving the proof is already multi-threaded)
2025-11-25 11:38:36 -08:00
Arvid NorbergandGitHub 8d4cbab782 make timelord/test_new_peak.py a bit more robust (#20271)
* make timelord/test_new_peak.py a bit more robust

* review comments
2025-11-21 13:27:57 -08:00
Arvid NorbergandGitHub 72d68282d1 [CHIA-3811] fix measurement of harvester lookup times for logging (#20285)
fix measurement of harvester lookup times for logging
2025-11-21 09:49:51 -08:00
Arvid NorbergandGitHub b7723252df v2 plots only support pool contract puzzle hash (#20145) 2025-11-21 09:45:56 -08:00
Arvid NorbergandGitHub 70b182e9c7 [CHIA-3805] reduce use of pool_reward_puzzle_hash feature of BlockTools (#20277)
* reduce use of pool_reward_puzzle_hash feature of BlockTools, since it's not supported by v2 plots

* the BlockTools feature to ask for a specific pool puzzle hash are not supported by v2 proofs. v2 plots only have pool contract puzzle hash
2025-11-21 09:44:53 -08:00
Arvid NorbergandGitHub 8beb3ee8d8 Tweak phase out (#20258)
* hoist calculations out of the loop over all test plots

* tweak phase-out to allow zero-epoch phase-outs, for tests

* review comments

* fix off-by-one in is_v1_phased_out

* review comments
2025-11-21 09:41:48 -08:00
Arvid NorbergandGitHub 6c8ccd246d don't allow, or harvest, v2 plots before hard fork activation (#20263) 2025-11-18 10:06:56 -08:00
Arvid NorbergandGitHub b1c9beed3f improve v2-plot support in plot-sync (#20238) 2025-11-18 10:05:50 -08:00
Arvid NorbergandGitHub 38d2d9f2d0 make sure to pass in the correct previous transaction block height (#20237)
* make sure to pass in the correct previous transaction block height to get_flags_for_height_and_constants()

* review comments
2025-11-14 16:29:51 -06:00
Arvid NorbergandGitHub 5cc6b5d409 improve logging in block_tools, to ease debugging (#20252) 2025-11-14 16:29:29 -06:00
Arvid NorbergandGitHub 54bdf378c7 introduce test_create_block_generator_custom_spend() (#20240)
introduce test_create_block_generator_custom_spend() test for the mempool_manager
2025-11-12 09:49:06 -07:00
Arvid NorbergandGitHub 5664516dda Bump chia rs 0.34.0 (#20226)
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
Arvid NorbergandGitHub 43c3c63145 [CHIA-3793] after the hard fork, disallow block references (#20218)
* after the hard fork, disallow block references

* disable hard-fork 2 tests until we have a new test cache

* fix rate limits test
2025-11-06 09:36:44 -07:00
Arvid NorbergandGitHub ece6de2af5 [CHIA-3795] change v1 plot phase-out (#20216)
* change v1 plot phase-out to not affect required iters, and to be quantized to epoch blocks

* disable hard-fork 2 tests until we have a new test cache

* fix rate limits test

* address review comments
2025-11-06 09:36:29 -07:00
Arvid NorbergandGitHub 810b9cfc52 fix BlockTools confusion between tx block and block with generators (#20212)
fix BlockTools confusion between transactions block and block with generator. Correctly pass in previous transaction block to PoS calculation
2025-10-31 08:55:50 -07:00
arvidn 0879516c61 minor optimization, skipping v1 plots after they are completely phased-out 2025-10-29 11:28:19 +01:00
arvidn 5492f82db7 remove remnants of the pos2 stubs 2025-10-28 15:01:00 +01:00
arvidn 39764bb7c5 use log.exception() instead of log.error() and log.warning() when logging exceptions 2025-10-28 14:18:41 +01:00
Arvid NorbergandGitHub 742a81a79f filelock for test- plots and blocks (#20193)
* introduce file lock for creating the test-plots in tests. This avoids having every process in pytest-xdist create the same plots, clobbering each other

* add lockfile to the test fixtures that generate the test blockchains. These are quite expensive to generate, we don't want every pytest-xdist process to have to do it

* improve error message when the plot manager has an unexpected number of plots, in the simulator

* review comments: use FileLock instead of custom made
2025-10-24 15:54:59 -07:00
Arvid NorbergandGitHub 3da5434382 fix serialization of partial-proofs (#20188)
* fix serialization of partial-proofs (list[uint64]) to bytes, for use as key in dictionary

* improve tests for partial-proof serialization
2025-10-23 08:59:05 -07:00
Arvid NorbergandGitHub 794cce7826 PoS2-prover (#20159)
* bump chia_rs to 0.31.0

* integrate new pos2 API from chia_rs into V2Prover

* fixup test_harvester_api mocking of Prover

* review-comments: rename get_quality() to get_string() on Quality protocol

* reivew comments

* fixup bump chia_rs

* restore quality string to bytes32
2025-10-22 15:40:25 -07:00
Arvid NorbergandGitHub 85e935ef29 BlockTools issue (#20185)
fix issue in BlockTools where transaction_generator was (incorrectly) used as a proxy for whether the block was a TX block or not. Also improve error messages for plot sizes as well as the minimum plot size for v2 plots on testnet (which also affects our simulations in CI)
2025-10-22 08:52:49 -07:00
Arvid NorbergandGitHub 67a047eef1 block header validation (#20155)
* minor simplification of block header validation test. Run it for all consensus modes

* reduce indentation level in test_long_chain()
2025-10-17 06:23:14 -07:00
Arvid NorbergandGitHub 73cb54789b [CHIA-3712] simplify add_transaction() (#20063)
* simpliy add_transaction() and replace literals with the CONSENSUS_ERROR_BAN_SECONDS constant

* fix tests and review comments

* review comments
2025-09-16 10:15:37 -07:00
Arvid NorbergandGitHub c1d15dfda3 Simplify rate limit numbers (#19991)
* remove unused default_settings in rate limits

* simplify rate_limit_numbers by flattening the structure. just map message type -> rate limits

* review comments
2025-09-11 08:54:17 -07:00
Arvid NorbergandGitHub d62a61da37 [CHIA-3701] Check plots v2 (#19982)
* support v2 plots in check-plots

* review comments
2025-09-09 09:06:02 -07:00
Arvid NorbergandGitHub f17dedd5be bump chia_rs dependency (#20023) 2025-09-05 06:31:21 -07:00
f2d92811a9 remove unnecessary NPCResult in mempool_manager (#20022)
* remove unnecessary NPCResult in mempool_manager

* review comment

* Update chia/full_node/mempool_manager.py

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-09-05 06:30:25 -07:00
Arvid NorbergandGitHub 6df066fa0c fix incorrect assert in create_block_generator2() (#20015) 2025-09-04 08:08:11 -07:00
Arvid NorbergandGitHub 3519265e36 [CHIA-3717] improve logging of NO_OVERFLOWS_IN_FIRST_SUB_SLOT_NEW_EPOCH (#20016)
improve logging of NO_OVERFLOWS_IN_FIRST_SUB_SLOT_NEW_EPOCH
2025-09-03 09:25:28 -07:00
Arvid NorbergandGitHub e4961d9ddf [CHIA-3654] [CHIA-3537] [CHIA-3673] stub chiapos2 API (#19969)
* stub chiapos2 API

* update block tools to support v2 plots when generating chains, as well as using the solve_proof() stub in the solver

* review comments
2025-09-03 09:24:44 -07:00
Arvid NorbergandGitHub 29c25fb188 Rate limits cleanup (#19990)
* use monotonic clock in rate limiter

* rename minute -> slot in rate limiter, as the length is a parameter

* mock timer in rate limit test to make them deterministic

* remove unnecessary pytest class

* improve comment in rate_limit_numbers

* fix minor typos in rate_limits.py

* replace test_too_many_messages() with a parametrized test for (almost) all rate-limit cases

* review comments: give better names to test parameters

* review comments

* review comments

* review comments

* review comments
2025-09-02 12:13:04 -07:00
ecb54a5874 support previous harvester protocol (#19994)
* support previous harvester protocol

* Update chia/protocols/harvester_protocol.py

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-08-28 12:25:38 -07:00