Skip to content

Commit

Permalink
qa: lower amount of headers we sync in spv_tests
Browse files Browse the repository at this point in the history
-expedite ci testing by lowering amount of headers synced to 32,000. this accounts for 16,000 non auxpow headers and 16,000 auxpow headers.
  • Loading branch information
xanimo committed Jan 17, 2024
1 parent c9bb325 commit 02fe812
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/spv_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ void test_spv_sync_completed(dogecoin_spv_client* client) {
}

dogecoin_bool test_spv_header_message_processed(struct dogecoin_spv_client_ *client, dogecoin_node *node, dogecoin_blockindex *newtip) {
UNUSED(client);
UNUSED(node);
if (newtip) {
printf("New headers tip height %d\n", newtip->height);
if (newtip->height >= 4008284) {
test_spv_sync_completed(client);
}
}
return true;
}
Expand Down

0 comments on commit 02fe812

Please sign in to comment.