Repository navigation
v3.3.2 — Neo node v3.11.2 alignment, Rust 1.99 / edition 2024
Highlights
This release aligns the SDK with Neo node v3.11.2 (neo-vm v3.11.2), ships the release-audit security hardening, and modernizes the entire workspace to Rust 1.99 / edition 2024.
✨ Protocol Alignment: Neo node v3.11.2
Verified against the upstream diff neo-project/neo v3.10.2 → v3.11.2 (119 commits / 300 files):
- New hardforks (
Hardforkenum):HF_Huyao(=7),HF_Iara(=8),HF_Jackalope(=9), matching the C#Hardfork : byteordinals. AddedLAST_CONFIG_MANAGED_HARDFORK(Huyao, mirroringProtocolSettings.LastConfigManagedHardfork), plusis_config_managed()/policy_name()helpers. Hardforks after Huyao are activated on-chain via the native Policy contract and must not appear in protocol settings. - MainNet/TestNet hardfork heights: HF_Faun → 8,800,000 (MainNet) / 12,960,000 (TestNet); HF_Gorgon → 12,020,000 (MainNet) / 17,960,000 (TestNet). Huyao remains unactivated.
- Policy contract:
get_hardfork_activation_height,activate_hardfork(committee invocation builder),get/set_temporary_storage_max_ttlwithMAX_TEMPORARY_STORAGE_MAX_TTL(365 days in ms). - ContractManagement:
get_contract_id(hash)— optimized ID lookup that skips full contract-state deserialization (getContractId, new in v3.11.2). - RunStats / dynamic opcode pricing / NeoGo reference-count alignment are node-VM internals — no SDK surface required (the SDK ships no VM).
🔒 Security & Fixes (release audit)
- SGX: DCAP v3 quote parsing correctness; malformed/truncated/untrusted certificate chains rejected; caller-supplied signed CRLs validated with fresh revocation coverage required by default.
- Account events: offsets applied once across the complete scan;
page_sizeenforced in both query entry points;execute_fastdelegates to the canonical scan. - CI gates (formatting, MSRV, fuzz, release, benchmark) repaired so failures are exercised.
🔧 Toolchain & Style Modernization
- Edition 2024 across the workspace (root crate,
neo-cli, all 29 example crates);rust-toolchain.tomlpins 1.99.1;rust-version= 1.99. cargo fix --editionmigration, with edition-2024 unsafestd::env::{set_var, remove_var}call sites (all test-only) wrapped in explicitunsafeblocks with SAFETY comments.- Clippy 0 warnings (
--workspace --all-targets): let-chains conversions,try_updaterename,&Vec<u8>→&[u8],result_large_errboxing, import ordering per rustfmt. - Fixed a latent compile error in
examples/monitoring_exporters.rs(feature-gated functions called from an ungatedmain).
✅ Verification
cargo clippy --workspace --all-targets: 0 errors / 0 warningscargo test --workspace --lib: 724 passed, 0 failedcargo test -p neo3 --tests: all integration suites 0 failed