Skip to content

Commit e809f19

Browse files
committed
Merge branch 'develop' of https://github.com/stacks-network/stacks-core into chore/add-0th-tenure-block-signing-test
2 parents 8dd4771 + 447bb15 commit e809f19

File tree

8 files changed

+764
-33
lines changed

8 files changed

+764
-33
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
- tests::signer::v0::mine_2_nakamoto_reward_cycles
116116
- tests::signer::v0::signer_set_rollover
117117
- tests::signer::v0::signing_in_0th_tenure_of_reward_cycle
118-
- tests::nakamoto_integrations::stack_stx_burn_op_integration_test
118+
- tests::nakamoto_integrations::burn_ops_integration_test
119119
- tests::nakamoto_integrations::check_block_heights
120120
- tests::nakamoto_integrations::clarity_burn_state
121121
- tests::nakamoto_integrations::check_block_times

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"lldb.adapterType": "native",
3-
"lldb.launch.sourceLanguages": ["rust"]
3+
"lldb.launch.sourceLanguages": ["rust"],
4+
"rust-analyzer.runnables.extraEnv": {
5+
"BITCOIND_TEST": "1"
6+
}
47
}

pox-locking/src/events.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,11 @@ fn create_event_info_data_code(
116116
// If a given burn block height is in a prepare phase, then the stacker will be in the _next_ reward cycle, so bump the cycle by 1
117117
// `prepare_offset` is 1 or 0, depending on whether current execution is in a prepare phase or not
118118
//
119-
// "is-in-next-pox-set" == effective-height <= (reward-length - prepare-length)
120-
// "<=" since the txs of the first block of the prepare phase are considered in the pox-set
119+
// "is-in-next-pox-set" == effective-height < (cycle-length - prepare-length)
120+
// "<" since the txs of the first block of the prepare phase are NOT considered in the pox-set,
121+
// the pox-set is locked in the first block of the prepare phase, before the transactions of that block are run.
121122
let pox_set_offset = r#"
122-
(pox-set-offset (if (<=
123+
(pox-set-offset (if (<
123124
(mod (- %height% (var-get first-burnchain-block-height)) (var-get pox-reward-cycle-length))
124125
(- (var-get pox-reward-cycle-length) (var-get pox-prepare-cycle-length))
125126
) u0 u1))

0 commit comments

Comments
 (0)