v0.3.14-pre.011-fix.001
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# file: Cargo.toml
|
||||
# version: 584
|
||||
# version: 585
|
||||
|
||||
[workspace]
|
||||
resolver = "3"
|
||||
members = ["crates/ksp-app-backfill-desk", "crates/ksp-app-config-desk", "crates/ksp-app-solprices-desk", "crates/ksp-app-store-desk", "crates/ksp-app-wallet-desk", "crates/ksp-config-lib", "crates/ksp-core-lib", "crates/ksp-interface-lib", "crates/ksp-job-api", "crates/ksp-job-backfill-lib", "crates/ksp-logging-lib", "crates/ksp-offchain-transport-lib", "crates/ksp-onchain-transport-lib", "crates/ksp-program-api", "crates/ksp-raw-transaction-lib", "crates/ksp-store-api", "crates/ksp-store-lib", "crates/ksp-store-postgres-lib", "crates/ksp-wallet-lib", "crates/ksp-worker-api", "crates/ksp-worker-raw-transaction-ingest-lib"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.3.14-pre.11"
|
||||
version = "0.3.14-pre.11.fix.1"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://git.sasedev.com/Sasedev/khadhroony-solana-project"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/src/continuity.rs
|
||||
// version: 10
|
||||
// version: 11
|
||||
|
||||
/// Maximum number of slots admitted by one private continuity HTTP discovery window outside this module.
|
||||
pub(crate) const MAX_RAW_TRANSACTION_INGEST_CONTINUITY_DISCOVERY_WINDOW_SLOTS: u64 = MAX_RAW_TRANSACTION_INGEST_REPAIR_DISCOVERY_WINDOW_SLOTS;
|
||||
@@ -473,7 +473,7 @@ impl RawTransactionIngestGapLedger {
|
||||
let mut http_scan_repair_total = 0_u64;
|
||||
let mut repair_block_fetch_total = 0_u64;
|
||||
let mut repair_transaction_hydration_total = 0_u64;
|
||||
let mut oldest_open_gap_start_slot = std::option::Option::None;
|
||||
let mut oldest_open_gap_start_slot: std::option::Option<u64> = std::option::Option::None;
|
||||
let mut gaps = std::vec::Vec::with_capacity(MAX_RAW_TRANSACTION_INGEST_OPEN_REPAIR_GAPS);
|
||||
for gap in &self.gaps {
|
||||
if gap.state.is_open() {
|
||||
|
||||
92
deltas/0.3.14/pre.011-fix.001.md
Normal file
92
deltas/0.3.14/pre.011-fix.001.md
Normal file
@@ -0,0 +1,92 @@
|
||||
<!-- file: deltas/0.3.14/pre.011-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.3.14-pre.011-fix.001` — annotation explicite du slot de gap le plus ancien
|
||||
|
||||
## Base requise
|
||||
|
||||
```text
|
||||
0.3.14-pre.011
|
||||
workspace.package.version = 0.3.14-pre.11
|
||||
deltas/0.3.14/pre.011.md présent
|
||||
```
|
||||
|
||||
## Défaut observé au gate opérateur
|
||||
|
||||
Les audits statiques de `pre.011` passent, mais `cargo check`, Clippy et les tests ne peuvent pas compiler le Worker à cause d'une inférence ambiguë :
|
||||
|
||||
```text
|
||||
error[E0282]: type annotations needed for `Option<_>`
|
||||
crates/ksp-worker-raw-transaction-ingest-lib/src/continuity.rs:476
|
||||
```
|
||||
|
||||
La variable `oldest_open_gap_start_slot` est initialisée à `None` puis utilisée avec `u64::min`; Rust exige ici que le type de l'`Option` soit fixé explicitement.
|
||||
|
||||
## Correction
|
||||
|
||||
La variable devient explicitement :
|
||||
|
||||
```rust
|
||||
let mut oldest_open_gap_start_slot: std::option::Option<u64> = std::option::Option::None;
|
||||
```
|
||||
|
||||
Aucune logique de projection, aucun compteur, aucun état de gap et aucune méthode de réparation n'est modifié.
|
||||
|
||||
## Périmètre
|
||||
|
||||
Le fix reste strictement dans la responsabilité de `pre.011` :
|
||||
|
||||
```text
|
||||
aucune modification de la surface publique
|
||||
aucune modification de health policy
|
||||
aucune modification de fairness
|
||||
aucune modification de replay/reconnect ownership
|
||||
aucune modification du pipeline Common RAW/Store
|
||||
aucune nouvelle dépendance
|
||||
```
|
||||
|
||||
## Fichiers ajoutés
|
||||
|
||||
```text
|
||||
deltas/0.3.14/pre.011-fix.001.md
|
||||
```
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-worker-raw-transaction-ingest-lib/src/continuity.rs
|
||||
```
|
||||
|
||||
## Fichiers supprimés
|
||||
|
||||
```text
|
||||
aucun
|
||||
```
|
||||
|
||||
## Version Cargo
|
||||
|
||||
Conformément à `VER-ID-007` et `VER-ID-010` :
|
||||
|
||||
```text
|
||||
header Cargo.toml : 584 -> 585
|
||||
workspace.package.version : 0.3.14-pre.11 -> 0.3.14-pre.11.fix.1
|
||||
```
|
||||
|
||||
Version du fichier Rust modifié :
|
||||
|
||||
```text
|
||||
src/continuity.rs : 10 -> 11
|
||||
```
|
||||
|
||||
## Gate opérateur après application
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
cargo fmt --all -- --check
|
||||
python3 scripts/audit_rust_workspace_rules.py
|
||||
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
cargo test -p ksp-worker-raw-transaction-ingest-lib --all-targets --all-features
|
||||
```
|
||||
Reference in New Issue
Block a user