Is your feature request related to a problem? Please describe.
In my smart contract, I would like to determine during which cycle a bitcoin transaction happened. This is to calculate the payout for stacking pool rewards.
Describe the solution you'd like
extend the function get-block-info? to return the burn block height:
(get-block-info? burn-block-height height)
Describe alternatives you've considered
Use (get-burn-block-info?...) with the block hash. This is not a good solution because the 2nd parameter should be the burn-block-height as discussed in #2663
Additional context
Required for autonomous Stacking Pools: stacksgov/grants-program#121
Is your feature request related to a problem? Please describe.
In my smart contract, I would like to determine during which cycle a bitcoin transaction happened. This is to calculate the payout for stacking pool rewards.
Describe the solution you'd like
extend the function
get-block-info?to return the burn block height:(get-block-info? burn-block-height height)Describe alternatives you've considered
Use
(get-burn-block-info?...)with the block hash. This is not a good solution because the 2nd parameter should be the burn-block-height as discussed in #2663Additional context
Required for autonomous Stacking Pools: stacksgov/grants-program#121