@@ -440,9 +440,6 @@ func assertOwnChain(t *testing.T, tester *downloadTester, length int) {
440440func TestCanonicalSynchronisation68Full (t * testing.T ) { testCanonSync (t , eth .ETH68 , FullSync ) }
441441func TestCanonicalSynchronisation68Snap (t * testing.T ) { testCanonSync (t , eth .ETH68 , SnapSync ) }
442442func TestCanonicalSynchronisation68Light (t * testing.T ) { testCanonSync (t , eth .ETH68 , LightSync ) }
443- func TestCanonicalSynchronisation67Full (t * testing.T ) { testCanonSync (t , eth .ETH67 , FullSync ) }
444- func TestCanonicalSynchronisation67Snap (t * testing.T ) { testCanonSync (t , eth .ETH67 , SnapSync ) }
445- func TestCanonicalSynchronisation67Light (t * testing.T ) { testCanonSync (t , eth .ETH67 , LightSync ) }
446443
447444func testCanonSync (t * testing.T , protocol uint , mode SyncMode ) {
448445 tester := newTester (t )
@@ -463,8 +460,6 @@ func testCanonSync(t *testing.T, protocol uint, mode SyncMode) {
463460// until the cached blocks are retrieved.
464461func TestThrottling68Full (t * testing.T ) { testThrottling (t , eth .ETH68 , FullSync ) }
465462func TestThrottling68Snap (t * testing.T ) { testThrottling (t , eth .ETH68 , SnapSync ) }
466- func TestThrottling67Full (t * testing.T ) { testThrottling (t , eth .ETH67 , FullSync ) }
467- func TestThrottling67Snap (t * testing.T ) { testThrottling (t , eth .ETH67 , SnapSync ) }
468463
469464func testThrottling (t * testing.T , protocol uint , mode SyncMode ) {
470465 tester := newTester (t )
@@ -546,9 +541,6 @@ func testThrottling(t *testing.T, protocol uint, mode SyncMode) {
546541func TestForkedSync68Full (t * testing.T ) { testForkedSync (t , eth .ETH68 , FullSync ) }
547542func TestForkedSync68Snap (t * testing.T ) { testForkedSync (t , eth .ETH68 , SnapSync ) }
548543func TestForkedSync68Light (t * testing.T ) { testForkedSync (t , eth .ETH68 , LightSync ) }
549- func TestForkedSync67Full (t * testing.T ) { testForkedSync (t , eth .ETH67 , FullSync ) }
550- func TestForkedSync67Snap (t * testing.T ) { testForkedSync (t , eth .ETH67 , SnapSync ) }
551- func TestForkedSync67Light (t * testing.T ) { testForkedSync (t , eth .ETH67 , LightSync ) }
552544
553545func testForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
554546 tester := newTester (t )
@@ -576,9 +568,6 @@ func testForkedSync(t *testing.T, protocol uint, mode SyncMode) {
576568func TestHeavyForkedSync68Full (t * testing.T ) { testHeavyForkedSync (t , eth .ETH68 , FullSync ) }
577569func TestHeavyForkedSync68Snap (t * testing.T ) { testHeavyForkedSync (t , eth .ETH68 , SnapSync ) }
578570func TestHeavyForkedSync68Light (t * testing.T ) { testHeavyForkedSync (t , eth .ETH68 , LightSync ) }
579- func TestHeavyForkedSync67Full (t * testing.T ) { testHeavyForkedSync (t , eth .ETH67 , FullSync ) }
580- func TestHeavyForkedSync67Snap (t * testing.T ) { testHeavyForkedSync (t , eth .ETH67 , SnapSync ) }
581- func TestHeavyForkedSync67Light (t * testing.T ) { testHeavyForkedSync (t , eth .ETH67 , LightSync ) }
582571
583572func testHeavyForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
584573 tester := newTester (t )
@@ -608,9 +597,6 @@ func testHeavyForkedSync(t *testing.T, protocol uint, mode SyncMode) {
608597func TestBoundedForkedSync68Full (t * testing.T ) { testBoundedForkedSync (t , eth .ETH68 , FullSync ) }
609598func TestBoundedForkedSync68Snap (t * testing.T ) { testBoundedForkedSync (t , eth .ETH68 , SnapSync ) }
610599func TestBoundedForkedSync68Light (t * testing.T ) { testBoundedForkedSync (t , eth .ETH68 , LightSync ) }
611- func TestBoundedForkedSync67Full (t * testing.T ) { testBoundedForkedSync (t , eth .ETH67 , FullSync ) }
612- func TestBoundedForkedSync67Snap (t * testing.T ) { testBoundedForkedSync (t , eth .ETH67 , SnapSync ) }
613- func TestBoundedForkedSync67Light (t * testing.T ) { testBoundedForkedSync (t , eth .ETH67 , LightSync ) }
614600
615601func testBoundedForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
616602 tester := newTester (t )
@@ -645,15 +631,6 @@ func TestBoundedHeavyForkedSync68Snap(t *testing.T) {
645631func TestBoundedHeavyForkedSync68Light (t * testing.T ) {
646632 testBoundedHeavyForkedSync (t , eth .ETH68 , LightSync )
647633}
648- func TestBoundedHeavyForkedSync67Full (t * testing.T ) {
649- testBoundedHeavyForkedSync (t , eth .ETH67 , FullSync )
650- }
651- func TestBoundedHeavyForkedSync67Snap (t * testing.T ) {
652- testBoundedHeavyForkedSync (t , eth .ETH67 , SnapSync )
653- }
654- func TestBoundedHeavyForkedSync67Light (t * testing.T ) {
655- testBoundedHeavyForkedSync (t , eth .ETH67 , LightSync )
656- }
657634
658635func testBoundedHeavyForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
659636 tester := newTester (t )
@@ -681,9 +658,6 @@ func testBoundedHeavyForkedSync(t *testing.T, protocol uint, mode SyncMode) {
681658func TestCancel68Full (t * testing.T ) { testCancel (t , eth .ETH68 , FullSync ) }
682659func TestCancel68Snap (t * testing.T ) { testCancel (t , eth .ETH68 , SnapSync ) }
683660func TestCancel68Light (t * testing.T ) { testCancel (t , eth .ETH68 , LightSync ) }
684- func TestCancel67Full (t * testing.T ) { testCancel (t , eth .ETH67 , FullSync ) }
685- func TestCancel67Snap (t * testing.T ) { testCancel (t , eth .ETH67 , SnapSync ) }
686- func TestCancel67Light (t * testing.T ) { testCancel (t , eth .ETH67 , LightSync ) }
687661
688662func testCancel (t * testing.T , protocol uint , mode SyncMode ) {
689663 tester := newTester (t )
@@ -711,9 +685,6 @@ func testCancel(t *testing.T, protocol uint, mode SyncMode) {
711685func TestMultiSynchronisation68Full (t * testing.T ) { testMultiSynchronisation (t , eth .ETH68 , FullSync ) }
712686func TestMultiSynchronisation68Snap (t * testing.T ) { testMultiSynchronisation (t , eth .ETH68 , SnapSync ) }
713687func TestMultiSynchronisation68Light (t * testing.T ) { testMultiSynchronisation (t , eth .ETH68 , LightSync ) }
714- func TestMultiSynchronisation67Full (t * testing.T ) { testMultiSynchronisation (t , eth .ETH67 , FullSync ) }
715- func TestMultiSynchronisation67Snap (t * testing.T ) { testMultiSynchronisation (t , eth .ETH67 , SnapSync ) }
716- func TestMultiSynchronisation67Light (t * testing.T ) { testMultiSynchronisation (t , eth .ETH67 , LightSync ) }
717688
718689func testMultiSynchronisation (t * testing.T , protocol uint , mode SyncMode ) {
719690 tester := newTester (t )
@@ -738,9 +709,6 @@ func testMultiSynchronisation(t *testing.T, protocol uint, mode SyncMode) {
738709func TestMultiProtoSynchronisation68Full (t * testing.T ) { testMultiProtoSync (t , eth .ETH68 , FullSync ) }
739710func TestMultiProtoSynchronisation68Snap (t * testing.T ) { testMultiProtoSync (t , eth .ETH68 , SnapSync ) }
740711func TestMultiProtoSynchronisation68Light (t * testing.T ) { testMultiProtoSync (t , eth .ETH68 , LightSync ) }
741- func TestMultiProtoSynchronisation67Full (t * testing.T ) { testMultiProtoSync (t , eth .ETH67 , FullSync ) }
742- func TestMultiProtoSynchronisation67Snap (t * testing.T ) { testMultiProtoSync (t , eth .ETH67 , SnapSync ) }
743- func TestMultiProtoSynchronisation67Light (t * testing.T ) { testMultiProtoSync (t , eth .ETH67 , LightSync ) }
744712
745713func testMultiProtoSync (t * testing.T , protocol uint , mode SyncMode ) {
746714 tester := newTester (t )
@@ -751,7 +719,6 @@ func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) {
751719
752720 // Create peers of every type
753721 tester .newPeer ("peer 68" , eth .ETH68 , chain .blocks [1 :])
754- tester .newPeer ("peer 67" , eth .ETH67 , chain .blocks [1 :])
755722
756723 // Synchronise with the requested peer and make sure all blocks were retrieved
757724 if err := tester .sync (fmt .Sprintf ("peer %d" , protocol ), nil , mode ); err != nil {
@@ -760,7 +727,7 @@ func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) {
760727 assertOwnChain (t , tester , len (chain .blocks ))
761728
762729 // Check that no peers have been dropped off
763- for _ , version := range []int {68 , 67 } {
730+ for _ , version := range []int {68 } {
764731 peer := fmt .Sprintf ("peer %d" , version )
765732 if _ , ok := tester .peers [peer ]; ! ok {
766733 t .Errorf ("%s dropped" , peer )
@@ -773,9 +740,6 @@ func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) {
773740func TestEmptyShortCircuit68Full (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH68 , FullSync ) }
774741func TestEmptyShortCircuit68Snap (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH68 , SnapSync ) }
775742func TestEmptyShortCircuit68Light (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH68 , LightSync ) }
776- func TestEmptyShortCircuit67Full (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH67 , FullSync ) }
777- func TestEmptyShortCircuit67Snap (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH67 , SnapSync ) }
778- func TestEmptyShortCircuit67Light (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH67 , LightSync ) }
779743
780744func testEmptyShortCircuit (t * testing.T , protocol uint , mode SyncMode ) {
781745 tester := newTester (t )
@@ -824,9 +788,6 @@ func testEmptyShortCircuit(t *testing.T, protocol uint, mode SyncMode) {
824788func TestMissingHeaderAttack68Full (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH68 , FullSync ) }
825789func TestMissingHeaderAttack68Snap (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH68 , SnapSync ) }
826790func TestMissingHeaderAttack68Light (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH68 , LightSync ) }
827- func TestMissingHeaderAttack67Full (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH67 , FullSync ) }
828- func TestMissingHeaderAttack67Snap (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH67 , SnapSync ) }
829- func TestMissingHeaderAttack67Light (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH67 , LightSync ) }
830791
831792func testMissingHeaderAttack (t * testing.T , protocol uint , mode SyncMode ) {
832793 tester := newTester (t )
@@ -853,9 +814,6 @@ func testMissingHeaderAttack(t *testing.T, protocol uint, mode SyncMode) {
853814func TestShiftedHeaderAttack68Full (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH68 , FullSync ) }
854815func TestShiftedHeaderAttack68Snap (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH68 , SnapSync ) }
855816func TestShiftedHeaderAttack68Light (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH68 , LightSync ) }
856- func TestShiftedHeaderAttack67Full (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH67 , FullSync ) }
857- func TestShiftedHeaderAttack67Snap (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH67 , SnapSync ) }
858- func TestShiftedHeaderAttack67Light (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH67 , LightSync ) }
859817
860818func testShiftedHeaderAttack (t * testing.T , protocol uint , mode SyncMode ) {
861819 tester := newTester (t )
@@ -889,15 +847,6 @@ func TestHighTDStarvationAttack68Snap(t *testing.T) {
889847func TestHighTDStarvationAttack68Light (t * testing.T ) {
890848 testHighTDStarvationAttack (t , eth .ETH68 , LightSync )
891849}
892- func TestHighTDStarvationAttack67Full (t * testing.T ) {
893- testHighTDStarvationAttack (t , eth .ETH67 , FullSync )
894- }
895- func TestHighTDStarvationAttack67Snap (t * testing.T ) {
896- testHighTDStarvationAttack (t , eth .ETH67 , SnapSync )
897- }
898- func TestHighTDStarvationAttack67Light (t * testing.T ) {
899- testHighTDStarvationAttack (t , eth .ETH67 , LightSync )
900- }
901850
902851func testHighTDStarvationAttack (t * testing.T , protocol uint , mode SyncMode ) {
903852 tester := newTester (t )
@@ -912,7 +861,6 @@ func testHighTDStarvationAttack(t *testing.T, protocol uint, mode SyncMode) {
912861
913862// Tests that misbehaving peers are disconnected, whilst behaving ones are not.
914863func TestBlockHeaderAttackerDropping68 (t * testing.T ) { testBlockHeaderAttackerDropping (t , eth .ETH68 ) }
915- func TestBlockHeaderAttackerDropping67 (t * testing.T ) { testBlockHeaderAttackerDropping (t , eth .ETH67 ) }
916864
917865func testBlockHeaderAttackerDropping (t * testing.T , protocol uint ) {
918866 // Define the disconnection requirement for individual hash fetch errors
@@ -963,9 +911,6 @@ func testBlockHeaderAttackerDropping(t *testing.T, protocol uint) {
963911func TestSyncProgress68Full (t * testing.T ) { testSyncProgress (t , eth .ETH68 , FullSync ) }
964912func TestSyncProgress68Snap (t * testing.T ) { testSyncProgress (t , eth .ETH68 , SnapSync ) }
965913func TestSyncProgress68Light (t * testing.T ) { testSyncProgress (t , eth .ETH68 , LightSync ) }
966- func TestSyncProgress67Full (t * testing.T ) { testSyncProgress (t , eth .ETH67 , FullSync ) }
967- func TestSyncProgress67Snap (t * testing.T ) { testSyncProgress (t , eth .ETH67 , SnapSync ) }
968- func TestSyncProgress67Light (t * testing.T ) { testSyncProgress (t , eth .ETH67 , LightSync ) }
969914
970915func testSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
971916 tester := newTester (t )
@@ -1043,9 +988,6 @@ func checkProgress(t *testing.T, d *Downloader, stage string, want ethereum.Sync
1043988func TestForkedSyncProgress68Full (t * testing.T ) { testForkedSyncProgress (t , eth .ETH68 , FullSync ) }
1044989func TestForkedSyncProgress68Snap (t * testing.T ) { testForkedSyncProgress (t , eth .ETH68 , SnapSync ) }
1045990func TestForkedSyncProgress68Light (t * testing.T ) { testForkedSyncProgress (t , eth .ETH68 , LightSync ) }
1046- func TestForkedSyncProgress67Full (t * testing.T ) { testForkedSyncProgress (t , eth .ETH67 , FullSync ) }
1047- func TestForkedSyncProgress67Snap (t * testing.T ) { testForkedSyncProgress (t , eth .ETH67 , SnapSync ) }
1048- func TestForkedSyncProgress67Light (t * testing.T ) { testForkedSyncProgress (t , eth .ETH67 , LightSync ) }
1049991
1050992func testForkedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
1051993 tester := newTester (t )
@@ -1117,9 +1059,6 @@ func testForkedSyncProgress(t *testing.T, protocol uint, mode SyncMode) {
11171059func TestFailedSyncProgress68Full (t * testing.T ) { testFailedSyncProgress (t , eth .ETH68 , FullSync ) }
11181060func TestFailedSyncProgress68Snap (t * testing.T ) { testFailedSyncProgress (t , eth .ETH68 , SnapSync ) }
11191061func TestFailedSyncProgress68Light (t * testing.T ) { testFailedSyncProgress (t , eth .ETH68 , LightSync ) }
1120- func TestFailedSyncProgress67Full (t * testing.T ) { testFailedSyncProgress (t , eth .ETH67 , FullSync ) }
1121- func TestFailedSyncProgress67Snap (t * testing.T ) { testFailedSyncProgress (t , eth .ETH67 , SnapSync ) }
1122- func TestFailedSyncProgress67Light (t * testing.T ) { testFailedSyncProgress (t , eth .ETH67 , LightSync ) }
11231062
11241063func testFailedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
11251064 tester := newTester (t )
@@ -1186,9 +1125,6 @@ func testFailedSyncProgress(t *testing.T, protocol uint, mode SyncMode) {
11861125func TestFakedSyncProgress68Full (t * testing.T ) { testFakedSyncProgress (t , eth .ETH68 , FullSync ) }
11871126func TestFakedSyncProgress68Snap (t * testing.T ) { testFakedSyncProgress (t , eth .ETH68 , SnapSync ) }
11881127func TestFakedSyncProgress68Light (t * testing.T ) { testFakedSyncProgress (t , eth .ETH68 , LightSync ) }
1189- func TestFakedSyncProgress67Full (t * testing.T ) { testFakedSyncProgress (t , eth .ETH67 , FullSync ) }
1190- func TestFakedSyncProgress67Snap (t * testing.T ) { testFakedSyncProgress (t , eth .ETH67 , SnapSync ) }
1191- func TestFakedSyncProgress67Light (t * testing.T ) { testFakedSyncProgress (t , eth .ETH67 , LightSync ) }
11921128
11931129func testFakedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
11941130 tester := newTester (t )
@@ -1332,8 +1268,6 @@ func TestRemoteHeaderRequestSpan(t *testing.T) {
13321268// being fast-synced from, avoiding potential cheap eclipse attacks.
13331269func TestBeaconSync68Full (t * testing.T ) { testBeaconSync (t , eth .ETH68 , FullSync ) }
13341270func TestBeaconSync68Snap (t * testing.T ) { testBeaconSync (t , eth .ETH68 , SnapSync ) }
1335- func TestBeaconSync67Full (t * testing.T ) { testBeaconSync (t , eth .ETH67 , FullSync ) }
1336- func TestBeaconSync67Snap (t * testing.T ) { testBeaconSync (t , eth .ETH67 , SnapSync ) }
13371271
13381272func testBeaconSync (t * testing.T , protocol uint , mode SyncMode ) {
13391273 //log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StreamHandler(os.Stderr, log.TerminalFormat(true))))
0 commit comments