Skip to content

Commit 81920f1

Browse files
committed
chore: fix unit test due to vtxindex=0 not being allowed by default in tests (since it's now reserved for shadow blocks)
1 parent 4dd6630 commit 81920f1

File tree

1 file changed

+4
-4
lines changed
  • stackslib/src/chainstate/nakamoto/coordinator

1 file changed

+4
-4
lines changed

stackslib/src/chainstate/nakamoto/coordinator/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3244,7 +3244,7 @@ fn test_stacks_on_burnchain_ops() {
32443244

32453245
// mocked
32463246
txid: Txid([i as u8; 32]),
3247-
vtxindex: 1,
3247+
vtxindex: 11,
32483248
block_height: block_height + 1,
32493249
burn_header_hash: BurnchainHeaderHash([0x00; 32]),
32503250
}));
@@ -3264,7 +3264,7 @@ fn test_stacks_on_burnchain_ops() {
32643264

32653265
// mocked
32663266
txid: Txid([(i as u8) | 0x80; 32]),
3267-
vtxindex: 2,
3267+
vtxindex: 12,
32683268
block_height: block_height + 1,
32693269
burn_header_hash: BurnchainHeaderHash([0x00; 32]),
32703270
}));
@@ -3276,7 +3276,7 @@ fn test_stacks_on_burnchain_ops() {
32763276

32773277
// mocked
32783278
txid: Txid([(i as u8) | 0x40; 32]),
3279-
vtxindex: 3,
3279+
vtxindex: 13,
32803280
block_height: block_height + 1,
32813281
burn_header_hash: BurnchainHeaderHash([0x00; 32]),
32823282
}));
@@ -3295,7 +3295,7 @@ fn test_stacks_on_burnchain_ops() {
32953295

32963296
// mocked
32973297
txid: Txid([(i as u8) | 0xc0; 32]),
3298-
vtxindex: 4,
3298+
vtxindex: 14,
32993299
block_height: block_height + 1,
33003300
burn_header_hash: BurnchainHeaderHash([0x00; 32]),
33013301
},

0 commit comments

Comments
 (0)