Skip to content

Commit 66bc4ab

Browse files
committed
Make sure NakamotoBlock has valid header timestamp in signer v0 tests
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 4497377 commit 66bc4ab

File tree

1 file changed

+2
-0
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+2
-0
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ fn block_proposal_rejection() {
489489
header: NakamotoBlockHeader::empty(),
490490
txs: vec![],
491491
};
492+
block.header.timestamp = get_epoch_time_secs();
492493

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

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

0 commit comments

Comments
 (0)