Skip to content

Commit f746932

Browse files
committed
wip: updating pox4_scenario_tests
1 parent 0fa2d24 commit f746932

File tree

3 files changed

+355
-87
lines changed

3 files changed

+355
-87
lines changed

stackslib/src/chainstate/nakamoto/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,12 @@ impl NakamotoBlockHeader {
835835
public_key_bytes.copy_from_slice(&public_key.to_bytes_compressed()[..]);
836836

837837
let (signer, signer_index) = signers_by_pk.get(&public_key_bytes).ok_or_else(|| {
838+
warn!(
839+
"Found an invalid public key. Reward set has {} signers. Chain length {}. Signatures length {}",
840+
signers.len(),
841+
self.chain_length,
842+
self.signer_signature.len(),
843+
);
838844
ChainstateError::InvalidStacksBlock(format!(
839845
"Public key {} not found in the reward set",
840846
public_key.to_hex()

stackslib/src/chainstate/nakamoto/test_signers.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@ impl TestSigners {
324324
.map(|s| s.signing_key.to_vec())
325325
.collect::<Vec<_>>();
326326

327+
info!(
328+
"TestSigners: Signing Nakamoto block. TestSigners has {} signers. Reward set has {} signers.",
329+
test_signers_by_pk.len(),
330+
reward_set_keys.len(),
331+
);
332+
327333
let mut signatures = Vec::with_capacity(reward_set_keys.len());
328334

329335
let mut missing_keys = 0;

0 commit comments

Comments
 (0)