Skip to content

Commit

Permalink
fix: include target-height in signed tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed Jun 21, 2023
1 parent 663db0f commit 2a27e41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chainstate/stacks/miner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@ impl Proposal {
.expect("Failed to form Clarity buffer from withdrawal root");
let target_tip = Value::buff_from(self.burn_tip.0.to_vec())
.expect("Failed to form Clarity buffer from target burnchain tip");
let target_height = Value::UInt((self.burn_tip_height - 1).into());
let signing_contract = Value::Principal(PrincipalData::Contract(signing_contract));

let data_tuple = Value::Tuple(
Expand All @@ -2440,6 +2441,7 @@ impl Proposal {
("subnet-block-height".into(), subnet_block_height),
("withdrawal-root".into(), withdrawal_root_buff),
("target-tip".into(), target_tip),
("target-height".into(), target_height),
("multi-contract".into(), signing_contract),
])
.expect("Failed to construct data tuple for block proposal"),
Expand Down

0 comments on commit 2a27e41

Please sign in to comment.