@@ -440,9 +440,6 @@ func assertOwnChain(t *testing.T, tester *downloadTester, length int) {
440
440
func TestCanonicalSynchronisation68Full (t * testing.T ) { testCanonSync (t , eth .ETH68 , FullSync ) }
441
441
func TestCanonicalSynchronisation68Snap (t * testing.T ) { testCanonSync (t , eth .ETH68 , SnapSync ) }
442
442
func 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 ) }
446
443
447
444
func testCanonSync (t * testing.T , protocol uint , mode SyncMode ) {
448
445
tester := newTester (t )
@@ -463,8 +460,6 @@ func testCanonSync(t *testing.T, protocol uint, mode SyncMode) {
463
460
// until the cached blocks are retrieved.
464
461
func TestThrottling68Full (t * testing.T ) { testThrottling (t , eth .ETH68 , FullSync ) }
465
462
func 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 ) }
468
463
469
464
func testThrottling (t * testing.T , protocol uint , mode SyncMode ) {
470
465
tester := newTester (t )
@@ -546,9 +541,6 @@ func testThrottling(t *testing.T, protocol uint, mode SyncMode) {
546
541
func TestForkedSync68Full (t * testing.T ) { testForkedSync (t , eth .ETH68 , FullSync ) }
547
542
func TestForkedSync68Snap (t * testing.T ) { testForkedSync (t , eth .ETH68 , SnapSync ) }
548
543
func 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 ) }
552
544
553
545
func testForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
554
546
tester := newTester (t )
@@ -576,9 +568,6 @@ func testForkedSync(t *testing.T, protocol uint, mode SyncMode) {
576
568
func TestHeavyForkedSync68Full (t * testing.T ) { testHeavyForkedSync (t , eth .ETH68 , FullSync ) }
577
569
func TestHeavyForkedSync68Snap (t * testing.T ) { testHeavyForkedSync (t , eth .ETH68 , SnapSync ) }
578
570
func 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 ) }
582
571
583
572
func testHeavyForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
584
573
tester := newTester (t )
@@ -608,9 +597,6 @@ func testHeavyForkedSync(t *testing.T, protocol uint, mode SyncMode) {
608
597
func TestBoundedForkedSync68Full (t * testing.T ) { testBoundedForkedSync (t , eth .ETH68 , FullSync ) }
609
598
func TestBoundedForkedSync68Snap (t * testing.T ) { testBoundedForkedSync (t , eth .ETH68 , SnapSync ) }
610
599
func 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 ) }
614
600
615
601
func testBoundedForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
616
602
tester := newTester (t )
@@ -645,15 +631,6 @@ func TestBoundedHeavyForkedSync68Snap(t *testing.T) {
645
631
func TestBoundedHeavyForkedSync68Light (t * testing.T ) {
646
632
testBoundedHeavyForkedSync (t , eth .ETH68 , LightSync )
647
633
}
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
- }
657
634
658
635
func testBoundedHeavyForkedSync (t * testing.T , protocol uint , mode SyncMode ) {
659
636
tester := newTester (t )
@@ -681,9 +658,6 @@ func testBoundedHeavyForkedSync(t *testing.T, protocol uint, mode SyncMode) {
681
658
func TestCancel68Full (t * testing.T ) { testCancel (t , eth .ETH68 , FullSync ) }
682
659
func TestCancel68Snap (t * testing.T ) { testCancel (t , eth .ETH68 , SnapSync ) }
683
660
func 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 ) }
687
661
688
662
func testCancel (t * testing.T , protocol uint , mode SyncMode ) {
689
663
tester := newTester (t )
@@ -711,9 +685,6 @@ func testCancel(t *testing.T, protocol uint, mode SyncMode) {
711
685
func TestMultiSynchronisation68Full (t * testing.T ) { testMultiSynchronisation (t , eth .ETH68 , FullSync ) }
712
686
func TestMultiSynchronisation68Snap (t * testing.T ) { testMultiSynchronisation (t , eth .ETH68 , SnapSync ) }
713
687
func 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 ) }
717
688
718
689
func testMultiSynchronisation (t * testing.T , protocol uint , mode SyncMode ) {
719
690
tester := newTester (t )
@@ -738,9 +709,6 @@ func testMultiSynchronisation(t *testing.T, protocol uint, mode SyncMode) {
738
709
func TestMultiProtoSynchronisation68Full (t * testing.T ) { testMultiProtoSync (t , eth .ETH68 , FullSync ) }
739
710
func TestMultiProtoSynchronisation68Snap (t * testing.T ) { testMultiProtoSync (t , eth .ETH68 , SnapSync ) }
740
711
func 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 ) }
744
712
745
713
func testMultiProtoSync (t * testing.T , protocol uint , mode SyncMode ) {
746
714
tester := newTester (t )
@@ -751,7 +719,6 @@ func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) {
751
719
752
720
// Create peers of every type
753
721
tester .newPeer ("peer 68" , eth .ETH68 , chain .blocks [1 :])
754
- tester .newPeer ("peer 67" , eth .ETH67 , chain .blocks [1 :])
755
722
756
723
// Synchronise with the requested peer and make sure all blocks were retrieved
757
724
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) {
760
727
assertOwnChain (t , tester , len (chain .blocks ))
761
728
762
729
// Check that no peers have been dropped off
763
- for _ , version := range []int {68 , 67 } {
730
+ for _ , version := range []int {68 } {
764
731
peer := fmt .Sprintf ("peer %d" , version )
765
732
if _ , ok := tester .peers [peer ]; ! ok {
766
733
t .Errorf ("%s dropped" , peer )
@@ -773,9 +740,6 @@ func testMultiProtoSync(t *testing.T, protocol uint, mode SyncMode) {
773
740
func TestEmptyShortCircuit68Full (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH68 , FullSync ) }
774
741
func TestEmptyShortCircuit68Snap (t * testing.T ) { testEmptyShortCircuit (t , eth .ETH68 , SnapSync ) }
775
742
func 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 ) }
779
743
780
744
func testEmptyShortCircuit (t * testing.T , protocol uint , mode SyncMode ) {
781
745
tester := newTester (t )
@@ -824,9 +788,6 @@ func testEmptyShortCircuit(t *testing.T, protocol uint, mode SyncMode) {
824
788
func TestMissingHeaderAttack68Full (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH68 , FullSync ) }
825
789
func TestMissingHeaderAttack68Snap (t * testing.T ) { testMissingHeaderAttack (t , eth .ETH68 , SnapSync ) }
826
790
func 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 ) }
830
791
831
792
func testMissingHeaderAttack (t * testing.T , protocol uint , mode SyncMode ) {
832
793
tester := newTester (t )
@@ -853,9 +814,6 @@ func testMissingHeaderAttack(t *testing.T, protocol uint, mode SyncMode) {
853
814
func TestShiftedHeaderAttack68Full (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH68 , FullSync ) }
854
815
func TestShiftedHeaderAttack68Snap (t * testing.T ) { testShiftedHeaderAttack (t , eth .ETH68 , SnapSync ) }
855
816
func 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 ) }
859
817
860
818
func testShiftedHeaderAttack (t * testing.T , protocol uint , mode SyncMode ) {
861
819
tester := newTester (t )
@@ -889,15 +847,6 @@ func TestHighTDStarvationAttack68Snap(t *testing.T) {
889
847
func TestHighTDStarvationAttack68Light (t * testing.T ) {
890
848
testHighTDStarvationAttack (t , eth .ETH68 , LightSync )
891
849
}
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
- }
901
850
902
851
func testHighTDStarvationAttack (t * testing.T , protocol uint , mode SyncMode ) {
903
852
tester := newTester (t )
@@ -912,7 +861,6 @@ func testHighTDStarvationAttack(t *testing.T, protocol uint, mode SyncMode) {
912
861
913
862
// Tests that misbehaving peers are disconnected, whilst behaving ones are not.
914
863
func TestBlockHeaderAttackerDropping68 (t * testing.T ) { testBlockHeaderAttackerDropping (t , eth .ETH68 ) }
915
- func TestBlockHeaderAttackerDropping67 (t * testing.T ) { testBlockHeaderAttackerDropping (t , eth .ETH67 ) }
916
864
917
865
func testBlockHeaderAttackerDropping (t * testing.T , protocol uint ) {
918
866
// Define the disconnection requirement for individual hash fetch errors
@@ -963,9 +911,6 @@ func testBlockHeaderAttackerDropping(t *testing.T, protocol uint) {
963
911
func TestSyncProgress68Full (t * testing.T ) { testSyncProgress (t , eth .ETH68 , FullSync ) }
964
912
func TestSyncProgress68Snap (t * testing.T ) { testSyncProgress (t , eth .ETH68 , SnapSync ) }
965
913
func 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 ) }
969
914
970
915
func testSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
971
916
tester := newTester (t )
@@ -1043,9 +988,6 @@ func checkProgress(t *testing.T, d *Downloader, stage string, want ethereum.Sync
1043
988
func TestForkedSyncProgress68Full (t * testing.T ) { testForkedSyncProgress (t , eth .ETH68 , FullSync ) }
1044
989
func TestForkedSyncProgress68Snap (t * testing.T ) { testForkedSyncProgress (t , eth .ETH68 , SnapSync ) }
1045
990
func 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 ) }
1049
991
1050
992
func testForkedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
1051
993
tester := newTester (t )
@@ -1117,9 +1059,6 @@ func testForkedSyncProgress(t *testing.T, protocol uint, mode SyncMode) {
1117
1059
func TestFailedSyncProgress68Full (t * testing.T ) { testFailedSyncProgress (t , eth .ETH68 , FullSync ) }
1118
1060
func TestFailedSyncProgress68Snap (t * testing.T ) { testFailedSyncProgress (t , eth .ETH68 , SnapSync ) }
1119
1061
func 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 ) }
1123
1062
1124
1063
func testFailedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
1125
1064
tester := newTester (t )
@@ -1186,9 +1125,6 @@ func testFailedSyncProgress(t *testing.T, protocol uint, mode SyncMode) {
1186
1125
func TestFakedSyncProgress68Full (t * testing.T ) { testFakedSyncProgress (t , eth .ETH68 , FullSync ) }
1187
1126
func TestFakedSyncProgress68Snap (t * testing.T ) { testFakedSyncProgress (t , eth .ETH68 , SnapSync ) }
1188
1127
func 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 ) }
1192
1128
1193
1129
func testFakedSyncProgress (t * testing.T , protocol uint , mode SyncMode ) {
1194
1130
tester := newTester (t )
@@ -1332,8 +1268,6 @@ func TestRemoteHeaderRequestSpan(t *testing.T) {
1332
1268
// being fast-synced from, avoiding potential cheap eclipse attacks.
1333
1269
func TestBeaconSync68Full (t * testing.T ) { testBeaconSync (t , eth .ETH68 , FullSync ) }
1334
1270
func 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 ) }
1337
1271
1338
1272
func testBeaconSync (t * testing.T , protocol uint , mode SyncMode ) {
1339
1273
//log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StreamHandler(os.Stderr, log.TerminalFormat(true))))
0 commit comments