Skip to content

L1 bond integration test#7223

Merged
brice-stacks merged 15 commits into
stacks-network:pox-wf-integrationfrom
brice-stacks:test/l1-bond-integration
May 29, 2026
Merged

L1 bond integration test#7223
brice-stacks merged 15 commits into
stacks-network:pox-wf-integrationfrom
brice-stacks:test/l1-bond-integration

Conversation

@brice-stacks

@brice-stacks brice-stacks commented May 21, 2026

Copy link
Copy Markdown
Contributor

Adds a complete L1 lockup integration test.

@brice-stacks brice-stacks force-pushed the test/l1-bond-integration branch from a44d4fa to 29c5f76 Compare May 21, 2026 18:23
@brice-stacks brice-stacks changed the title Test/l1 bond integration L1 bond integration test May 21, 2026
@coveralls

coveralls commented May 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 26263073494

Coverage increased (+0.007%) to 85.966%

Details

  • Coverage increased (+0.007%) from the base build.
  • Patch coverage: 9 uncovered changes across 2 files (48 of 57 lines covered, 84.21%).
  • 6164 coverage regressions across 97 files.

Uncovered Changes

File Changed Covered %
stacks-node/src/burnchains/bitcoin_regtest_controller.rs 37 30 81.08%
stacks-node/src/burnchains/rpc/bitcoin_rpc_client/test_utils.rs 20 18 90.0%

Coverage Regressions

6164 previously-covered lines in 97 files lost coverage.

Top 10 Files by Coverage Loss Lines Losing Coverage Coverage
stackslib/src/chainstate/burn/db/sortdb.rs 615 90.4%
stackslib/src/config/mod.rs 350 69.02%
stackslib/src/chainstate/stacks/boot/mod.rs 248 94.21%
stackslib/src/chainstate/stacks/index/storage.rs 245 80.69%
clarity/src/vm/database/structures.rs 233 77.69%
stackslib/src/chainstate/stacks/miner.rs 224 83.5%
clarity/src/vm/database/clarity_db.rs 218 80.9%
stackslib/src/burnchains/burnchain.rs 216 71.23%
stackslib/src/chainstate/nakamoto/signer_set.rs 199 69.19%
stackslib/src/core/mempool.rs 170 86.84%

Coverage Stats

Coverage Status
Relevant Lines: 220558
Covered Lines: 189605
Line Coverage: 85.97%
Coverage Strength: 17764882.87 hits per line

💛 - Coveralls

The simnet doesn't provide a way to do much real testing with the L1
data, so we need to remove those from the unit tests and check that
behavior in integration tests.
The `construct-lockup-script` now correctly handles the `unlock-bytes`
from the user. The `check_pox_5_register_for_bond_l1_lockup_lifecycle`
test is extended to verify that the staker, and no one else, can spend
the BTC when the lock expires.
@brice-stacks

Copy link
Copy Markdown
Contributor Author

This PR includes the basic L1 bond integration test, as described, as well as the fixes to the lock script construction and a complete test of an L1 early unlock.

Comment thread stacks-node/src/tests/nakamoto_integrations.rs

@aaronb-stacks aaronb-stacks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! LGTM, but I'd appreciate the new tests landing in a new file rather than expanding the bloat in nakamoto_integrations

@hstove-stacks hstove-stacks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Fantastic work on this

Comment thread stacks-node/src/tests/pox_5_integrations.rs
@brice-stacks brice-stacks merged commit b6fc7f5 into stacks-network:pox-wf-integration May 29, 2026
221 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants