|
Ran
|
Jobs
1
|
Files
946
|
Run time
1min
|
Badge
README BADGES
|
push
github
update create_block_generator RPC to use the right fork settings (#21563) `get_flags_for_height_and_constants()` tells us which features to enable based on block height (features are specified by the flags). <!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Narrow change to RPC-side simulated block validation flags; does not alter on-chain consensus paths, but wrong flags could mis-report validation/cost for the endpoint. > > **Overview** > The **`/create_block_generator`** RPC still builds a mempool-backed generator and runs **`run_block_generator2`** to validate it, but validation no longer passes only **`MEMPOOL_MODE`**. > > It now computes **`flags = MEMPOOL_MODE | get_flags_for_height_and_constants(curr_l_tb.height, self.service.constants)`**, using the height of the last transaction block before the peak so simulated blocks follow the same fork/CLVM rules as real validation at that tip. > > This imports **`get_flags_for_height_and_constants`** from **`chia_rs`** for that call. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5c256b3be. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
20140 of 25098 branches covered (80.25%)
Branch coverage included in aggregate %.
0 of 1 new or added line in 1 file covered. (0.0%)
8 existing lines in 2 files now uncovered.118613 of 128424 relevant lines covered (92.36%)
1.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
72.54
|
-0.09% | chia/full_node/full_node_rpc_api.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 7 |
77.16
|
-0.89% | chia/daemon/server.py |
| 1 |
84.35
|
0.35% | chia/full_node/full_node.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 40196336147.1 | 1892 |
90.38
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|