Skip to content

Commit fdcfcdf

Browse files
committed
Add some logging to bitcoind test
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 065a89b commit fdcfcdf

File tree

1 file changed

+17
-6
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+17
-6
lines changed

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

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,8 +1227,9 @@ fn bitcoind_forking_test() {
12271227
let pre_epoch_3_nonce = get_account(&http_origin, &miner_address).nonce;
12281228
let pre_fork_tenures = 10;
12291229

1230-
for _i in 0..pre_fork_tenures {
1231-
let _mined_block = signer_test.mine_nakamoto_block(Duration::from_secs(30));
1230+
for i in 0..pre_fork_tenures {
1231+
debug!("Mining pre-fork tenure {} of {pre_fork_tenures}", i + 1);
1232+
signer_test.mine_nakamoto_block(Duration::from_secs(30));
12321233
}
12331234

12341235
let pre_fork_1_nonce = get_account(&http_origin, &miner_address).nonce;
@@ -1255,7 +1256,11 @@ fn bitcoind_forking_test() {
12551256
thread::sleep(Duration::from_secs(15));
12561257

12571258
// we need to mine some blocks to get back to being considered a frequent miner
1258-
for _i in 0..3 {
1259+
for i in 0..3 {
1260+
debug!(
1261+
"Mining block {} of 3 to be considered a frequent miner",
1262+
i + 1
1263+
);
12591264
let commits_count = signer_test
12601265
.running_nodes
12611266
.commits_submitted
@@ -1278,7 +1283,8 @@ fn bitcoind_forking_test() {
12781283

12791284
assert_eq!(post_fork_1_nonce, pre_fork_1_nonce - 1 * 2);
12801285

1281-
for _i in 0..5 {
1286+
for i in 0..5 {
1287+
debug!("Mining post-fork tenure {} of 5", i + 1);
12821288
signer_test.mine_nakamoto_block(Duration::from_secs(30));
12831289
}
12841290

@@ -1310,7 +1316,11 @@ fn bitcoind_forking_test() {
13101316
thread::sleep(Duration::from_secs(15));
13111317

13121318
// we need to mine some blocks to get back to being considered a frequent miner
1313-
for _i in 0..3 {
1319+
for i in 0..3 {
1320+
debug!(
1321+
"Mining block {} of 3 to be considered a frequent miner",
1322+
i + 1
1323+
);
13141324
let commits_count = signer_test
13151325
.running_nodes
13161326
.commits_submitted
@@ -1333,7 +1343,8 @@ fn bitcoind_forking_test() {
13331343

13341344
assert_eq!(post_fork_2_nonce, pre_fork_2_nonce - 4 * 2);
13351345

1336-
for _i in 0..5 {
1346+
for i in 0..5 {
1347+
debug!("Mining post-fork tenure {} of 5", i + 1);
13371348
signer_test.mine_nakamoto_block(Duration::from_secs(30));
13381349
}
13391350

0 commit comments

Comments
 (0)