Skip to content

Commit 251dc3c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feat/naka-miner-heuristics
2 parents 541d13b + 447bb15 commit 251dc3c

File tree

7 files changed

+760
-32
lines changed

7 files changed

+760
-32
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- tests::signer::v0::partial_tenure_fork
115115
- tests::signer::v0::mine_2_nakamoto_reward_cycles
116116
- tests::signer::v0::signer_set_rollover
117-
- tests::nakamoto_integrations::stack_stx_burn_op_integration_test
117+
- tests::nakamoto_integrations::burn_ops_integration_test
118118
- tests::nakamoto_integrations::check_block_heights
119119
- tests::nakamoto_integrations::clarity_burn_state
120120
- tests::nakamoto_integrations::check_block_times

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)