hirosystems / hirosystems/stacks-subnets

Subnet miner should wait before first commit

Open
#217 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
51
Forks
13
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

When using `clarinet integrate` to spin up a subnet network, the subnet miner submits block commitments _before_ its reached the chain tip of the L1 stacks network. This leads to the first commitment failing with `(ERR 11)` (invalid chain tip).

There's a bunch of different ways this could be tackled -- here's the two that occur to me initially:

1. The subnet node could use the L1 RPC interface to get the current block height, and wait until its processed up to that height.
2. The subnet node could use the "wait until height" configuration parameter.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.