Skip to content

Bump version, Node >=24, deps, bigger contract#248

Merged
BlobMaster41 merged 5 commits intomainfrom
upgrade/rust-merkle-tree
Mar 9, 2026
Merged

Bump version, Node >=24, deps, bigger contract#248
BlobMaster41 merged 5 commits intomainfrom
upgrade/rust-merkle-tree

Conversation

@BlobMaster41
Copy link
Contributor

@BlobMaster41 BlobMaster41 commented Mar 7, 2026

Bump package version to 1.0.0+testnet.2 and require Node >=24.0.0 <26.0.0. Upgrade @btc-vision/rust-merkle-tree to ^1.0.2. In Transaction.ts remove unused imports and apply minor whitespace/formatting tweaks around checksum and decompression logic. Increase RoswellConsensus.MAXIMUM_CONTRACT_SIZE_COMPRESSED from 1281024 to 5121024 to allow larger compressed contracts (note: related comment was not updated).

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Performance improvement
  • Consensus change (changes that affect state calculation or validation)
  • Refactoring (no functional changes)
  • Documentation update
  • CI/CD changes
  • Dependencies update

Checklist

Build & Tests

  • npm install completes without errors
  • npm run build completes without errors
  • npm test passes all tests

Code Quality

  • Code follows the project's coding standards
  • No new compiler warnings introduced
  • Error handling is appropriate
  • Logging is appropriate for debugging and monitoring

Documentation

  • Code comments added for complex logic
  • Public APIs are documented
  • README updated (if applicable)

Security

  • No sensitive data (keys, credentials) committed
  • No new security vulnerabilities introduced
  • RPC endpoints properly authenticated
  • Input validation in place for external data

OP_NET Node Specific

  • Changes are compatible with existing network state
  • Consensus logic changes are documented and tested
  • State transitions are deterministic
  • WASM VM execution is reproducible across nodes
  • P2P protocol changes are backward-compatible (or migration planned)
  • Database schema changes include migration path
  • Epoch finality and PoC/PoW logic unchanged (or documented if changed)

Testing

Consensus Impact

Related Issues


By submitting this PR, I confirm that my contribution is made under the terms of the project's license.

Bump package version to 1.0.0+testnet.2 and require Node >=24.0.0 <26.0.0. Upgrade @btc-vision/rust-merkle-tree to ^1.0.2. In Transaction.ts remove unused imports and apply minor whitespace/formatting tweaks around checksum and decompression logic. Increase RoswellConsensus.MAXIMUM_CONTRACT_SIZE_COMPRESSED from 128*1024 to 512*1024 to allow larger compressed contracts (note: related comment was not updated).
@BlobMaster41 BlobMaster41 added enhancement New feature or request core component dependencies Pull requests that update a dependency file consensus-change breaking-change labels Mar 7, 2026
Update package.json author to OP_NET and license to Apache-2.0. In SharedInteractionParameters.ts consolidate feature/bitcoin imports, add toHex import, and include a hex dump of epoch submission feature data (when <200 bytes) in the validation error message to aid debugging.
Raise size limits in Roswell consensus config: set CONTRACTS.MAXIMUM_CONTRACT_SIZE_COMPRESSED from 512*1024 (512KB) to 1536*1024 (1.5MB) and update its comment, and increase COMPRESSION.MAX_DECOMPRESSED_SIZE from ~1.5MB to Math.ceil(1024*1024*2) (2MB). These changes allow larger compressed contract payloads and greater decompressed buffer size.
Remove an inline commented legacy block value (//933_330n) from RoswellConsensus Bitcoin mainnet configuration in RoswellConsensus.ts. This is a code cleanup with no functional change.
Update package.json to bump @btc-vision/bitcoin-rpc to ^1.1.2 and @btc-vision/op-vm to ^1.0.0-rc.2. Also reformat multiline import statements in SharedInteractionParameters.ts for readability; these are whitespace/formatting changes only and do not alter runtime behavior.
@BlobMaster41 BlobMaster41 merged commit 6d98a01 into main Mar 9, 2026
15 checks passed
@BlobMaster41 BlobMaster41 deleted the upgrade/rust-merkle-tree branch March 9, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change consensus-change core component dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant