push
github
checkpoint: into main from release/2.6.1 @ <a class=hub.com/Chia-Network/chia-blockchain/commit/c3364780d48921f7f8036492a94e6f354f73cfd8">c3364780d (#20696) Source hash: c3364780d48921f7f8036492a94e6f354f73cfd8 Remaining commits: 1 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Touches full node block-ingest and peer discovery paths plus wallet RPC signing behavior, so mistakes could affect sync/connectivity or transaction submission, though changes are mostly defensive and covered by new regression tests. > > **Overview** > Improves robustness and security hardening across node networking and block processing. `FullNode.add_prevalidated_blocks()` now returns typed `Err` values (and logs) when prevalidation fails or `required_iters` is missing, instead of raising assertions; new regression tests cover these cases. > > Hardens peer discovery against pathological peer host strings by bounding host length and rejecting non-IP hosts in `_add_peers_common()` and `add_peers_neighbour()`, with new tests for oversized/invalid/mixed hosts. > > Fixes cache eviction for future infusion points by recording TTLs in `FullNodeStore.add_to_future_ip()` and adds tests ensuring `clear_old_cache_entries()` evicts stale entries. Also tightens keyring passphrase cache semantics (empty/cleared treated as missing) with a new test, ensures data-layer uploader HTTP sessions consistently use `client_timeout`, fixes an S3 plugin missing `continue` on store-id mismatch, and disables auto-signing specifically for the wallet RPC `take_offer` action scope. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1351f71b3. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
10436 of 11608 branches covered (89.9%)
Branch coverage included in aggregate %.
156 of 159 new or added lines in 10 files covered. (98.11%)
340 existing lines in 8 files now uncovered.105813 of 115829 relevant lines covered (91.35%)
1.83 hits per line