Skip to content

Commit

Permalink
Make sure NakamotoBlock has valid header timestamp in signer v0 tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Dec 10, 2024
1 parent 4497377 commit 66bc4ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testnet/stacks-node/src/tests/signer/v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ fn block_proposal_rejection() {
header: NakamotoBlockHeader::empty(),
txs: vec![],
};
block.header.timestamp = get_epoch_time_secs();

// First propose a block to the signers that does not have the correct consensus hash or BitVec. This should be rejected BEFORE
// the block is submitted to the node for validation.
Expand Down Expand Up @@ -7509,6 +7510,7 @@ fn block_validation_response_timeout() {
header: NakamotoBlockHeader::empty(),
txs: vec![],
};
block.header.timestamp = get_epoch_time_secs();

let info_before = get_chain_info(&signer_test.running_nodes.conf);
// Propose a block to the signers that passes initial checks but will not be submitted to the stacks node due to the submission stall
Expand Down

0 comments on commit 66bc4ab

Please sign in to comment.