Repository navigation
Build against rusty-kaspa v2.1.0 and silverscript 1.0.1 - #71
Merged
michaelsutton merged 1 commit intoOct 19, 2026
Merged
Conversation
rusty-kaspa v2.1.0 removed the pre-Toccata mode, which broke argent-runtime in two places (argent-lang#64): - Params::block_mass_limits() (a ForkedParam) is now a plain field; use it directly. Mainnet values are unchanged from the old .after() selection: compute 500_000, storage 500_000, transient 1_000_000. - EngineFlags lost covenants_enabled; the engine now always runs the path that covenants_enabled: true selected. Use EngineFlags::default() (sigop_script_units = Gram(1000), as before). Move the rusty-kaspa crates from the git pin a41a333b to crates.io 2.1.0 and silverscript from git 3ed97333 to crates.io 1.0.1, which already targets rusty-kaspa 2.1.0 (kaspanet/silverscript#256, #259). Add a test pinning the limit and flag values so the migration is behavior-preserving. ./check.sh --full passes; regenerated example artifacts are byte-identical. Fixes argent-lang#64
michaelsutton
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #64.
rusty-kaspa v2.1.0 removed the pre-Toccata mode, and that broke
argent-runtimein two places. silverscript#256 was the blocker mentioned in #64. It was resolved by silverscript#259, andsilverscript-abi/silverscript-lang1.0.1 on crates.io now target rusty-kaspa 2.1.0, so argent can move too. This follows the fix outlined in #64 by @Drcryptodee.Changes
Cargo.toml: rusty-kaspa crates (kaspa-consensus-core,kaspa-txscript,kaspa-txscript-errors) move from git reva41a333bto crates.io2.1.0.silverscript-abi/silverscript-langmove from git rev3ed97333to crates.io1.0.1.Cargo.lockregenerated.crates/argent-runtime/src/lib.rs:MAINNET_PARAMS.block_mass_limits().after()becomesMAINNET_PARAMS.block_mass_limits. In 2.1.0 it's a plain field, and its mainnet value{ compute: 500_000, storage: 500_000, transient: 1_000_000 }equals the old.after()value (prior_block_mass_limits= shared 500_000,new_transient_mass_limit= 1_000_000 at a41a333b).EngineFlags { covenants_enabled: true, ..Default::default() }becomesEngineFlags::default(). In 2.1.0,EngineFlagsonly hassigop_script_units(defaultGram(1000), unchanged), and the engine always takes the path thatcovenants_enabled: trueused to select.post_toccata_limits_and_flags_match_pre_v2_1_selectionpins these values, so the migration provably doesn't change behavior.Verification
./check.sh --full(toolchain 1.94.0) passes: fmt,cargo check --workspace, example regeneration, 556 tests passed / 0 failed, clippy-D warnings,git diff --check.examples/build/**artifacts are byte-identical to main, so the CI stepgit diff --exit-codepasses and compiled output doesn't change.