We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug On Simnet, in at-block, burn-block-height returns the highest latest value, not the value on that block
To Reproduce Steps to reproduce the behavior:
(define-read-only (get-burn (height uint)) (let ( (id (unwrap! (get-stacks-block-info? id-header-hash height) err-invalid-args)) ) (at-block id (ok { burn-block-height: burn-block-height, stacks-block-height: stacks-block-height }) ) ) )
(contract-call? .contract get-burn u3)
Expected behavior burn-block-height should return the height for that at-block
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
I tried reproducing this today. It does not happen in the default Epoch (2.05) and only happens in Epoch 3.0, so the full steps to reproduce are:
::set_epoch 3.0
(define-read-only (get-burn (height uint)) (let ( (id (unwrap! (get-stacks-block-info? id-header-hash height) (err 1))) ) (at-block id (ok { burn-block-height: burn-block-height, stacks-block-height: stacks-block-height }) ) ) )
::advance_burn_chain_tip 100
(contract-call? .contract-0 get-burn u3)
Which returns:
(ok { burn-block-height: u101, stacks-block-height: u3 })
The problem is that burn-block-height is calculated differently in Epoch 3.0, in a way that doesn't take into account the context set by at-block
burn-block-height
at-block
Sorry, something went wrong.
hugocaillard
No branches or pull requests
Describe the bug
On Simnet, in at-block, burn-block-height returns the highest latest value, not the value on that block
To Reproduce
Steps to reproduce the behavior:
Expected behavior
burn-block-height should return the height for that at-block
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: