Skip to content

Commit

Permalink
Merge pull request #186 from xanimo/0.1.3-dev-spv_tests
Browse files Browse the repository at this point in the history
qa: lower amount of headers we sync in spv_tests
  • Loading branch information
michilumin authored Jan 19, 2024
2 parents 2341064 + 27e7b38 commit c09079a
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 c09079a

Please sign in to comment.