mirror of
https://github.com/alexgo-io/stacks-subnets.git
synced 2026-01-12 08:34:47 +08:00
The event generated by a `commit-block` (on the L1) now includes the block height for the block that is being committed, in the `block-height` key of the event tuple. The target burnchain block height now uses the key `target-burn-block-height`. This is useful for debugging, making it easy to match the L1 transactions with the L2 blocks. Note that this field is not checked in the tests since it is purely for convenience and could be left out of some implementations.
Subnets Core Contracts
This directory contains the contracts published to the Stacks L1 to implement a subnet.
- subnet.clar: interface between the subnet and the L1
- multi-miner.clar: implements a multi-miner for the subnet
- helper/*: used for testing
Running Tests
To run the tests and generate a code coverage report:
clarinet test --coverage --import-map=./import_map.json --allow-net
To generate HTML from the code coverage report and view it:
mkdir coverage
cd coverage
genhtml ../coverage.lcov
# Open with your preferred browser
brave index.html