pkt-cash / pktd

The PKT full node and wallet
https://pkt.cash/
ISC License
39 stars 27 forks source link

Fix broken neutrino tests #327

Closed aldebap closed 2 years ago

aldebap commented 2 years ago

The following things were added/changed/fixed:

. compilation errors fixed in the following tests: neutrino/headerfs/index_test.go , neutrino/bamboozle_unit_test.go and neutrino/blockmanager_test.go; . elimination of all test cases from neutrino/headerfs/index_test.go that doesn't make sense anymore; . fix some segmentation faults in 2 test cases; . fix in the BatchManager loopBreak detection to avoid logging messages that are not in fact some sort of error; . refactory of TestBlockManagerDetectBadPeers() test case due to wrong scenario implementation; . I kept some debug traces used during the debugging of the test code;