hirosystems / stacks-subnets

Stacks Subnets: a layer-2 scaling solution for Stacks, intended for high-throughput, low-latency workloads
http://docs.hiro.so
GNU General Public License v3.0
51 stars 13 forks source link

feat: add `target-chain-height` to `commit-block` #289

Closed obycode closed 1 year ago

obycode commented 1 year ago

Description

This allows us to check if the target block is anywhere in the past, not just the last block. That means if the block commit misses its target block, but lands in a different block that is still in the same fork as the target block, then the block commit can be successful.

Checklist

obycode commented 1 year ago

This PR still needs tests added.

obycode commented 1 year ago

This has been integrated into #248.