Skip to content

v3.3.2 — Neo node v3.11.2 alignment, Rust 1.99 / edition 2024

Choose a tag to compare

@Jim8y Jim8y released this 22 Nov 03:53
· 16 commits to master since this release

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 (Hardfork enum): HF_Huyao (=7), HF_Iara (=8), HF_Jackalope (=9), matching the C# Hardfork : byte ordinals. Added LAST_CONFIG_MANAGED_HARDFORK (Huyao, mirroring ProtocolSettings.LastConfigManagedHardfork), plus is_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_ttl with MAX_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_size enforced in both query entry points; execute_fast delegates 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.toml pins 1.99.1; rust-version = 1.99.
  • cargo fix --edition migration, with edition-2024 unsafe std::env::{set_var, remove_var} call sites (all test-only) wrapped in explicit unsafe blocks with SAFETY comments.
  • Clippy 0 warnings (--workspace --all-targets): let-chains conversions, try_update rename, &Vec<u8> → &[u8], result_large_err boxing, import ordering per rustfmt.
  • Fixed a latent compile error in examples/monitoring_exporters.rs (feature-gated functions called from an ungated main).

✅ Verification

  • cargo clippy --workspace --all-targets: 0 errors / 0 warnings
  • cargo test --workspace --lib: 724 passed, 0 failed
  • cargo test -p neo3 --tests: all integration suites 0 failed