@@ -52,35 +52,35 @@ func NewSuite(dest *enode.Node, chainfile string, genesisfile string) (*Suite, e
5252func (s * Suite ) AllEthTests () []utesting.Test {
5353 return []utesting.Test {
5454 // status
55- {Name : "TestStatus " , Fn : s .TestStatus },
55+ {Name : "TestStatus65 " , Fn : s .TestStatus65 },
5656 {Name : "TestStatus66" , Fn : s .TestStatus66 },
5757 // get block headers
58- {Name : "TestGetBlockHeaders " , Fn : s .TestGetBlockHeaders },
58+ {Name : "TestGetBlockHeaders65 " , Fn : s .TestGetBlockHeaders65 },
5959 {Name : "TestGetBlockHeaders66" , Fn : s .TestGetBlockHeaders66 },
6060 {Name : "TestSimultaneousRequests66" , Fn : s .TestSimultaneousRequests66 },
6161 {Name : "TestSameRequestID66" , Fn : s .TestSameRequestID66 },
6262 {Name : "TestZeroRequestID66" , Fn : s .TestZeroRequestID66 },
6363 // get block bodies
64- {Name : "TestGetBlockBodies " , Fn : s .TestGetBlockBodies },
64+ {Name : "TestGetBlockBodies65 " , Fn : s .TestGetBlockBodies65 },
6565 {Name : "TestGetBlockBodies66" , Fn : s .TestGetBlockBodies66 },
6666 // broadcast
67- {Name : "TestBroadcast " , Fn : s .TestBroadcast },
67+ {Name : "TestBroadcast65 " , Fn : s .TestBroadcast65 },
6868 {Name : "TestBroadcast66" , Fn : s .TestBroadcast66 },
69- {Name : "TestLargeAnnounce " , Fn : s .TestLargeAnnounce },
69+ {Name : "TestLargeAnnounce65 " , Fn : s .TestLargeAnnounce65 },
7070 {Name : "TestLargeAnnounce66" , Fn : s .TestLargeAnnounce66 },
71- {Name : "TestOldAnnounce " , Fn : s .TestOldAnnounce },
71+ {Name : "TestOldAnnounce65 " , Fn : s .TestOldAnnounce65 },
7272 {Name : "TestOldAnnounce66" , Fn : s .TestOldAnnounce66 },
73- {Name : "TestBlockHashAnnounce " , Fn : s .TestBlockHashAnnounce },
73+ {Name : "TestBlockHashAnnounce65 " , Fn : s .TestBlockHashAnnounce65 },
7474 {Name : "TestBlockHashAnnounce66" , Fn : s .TestBlockHashAnnounce66 },
7575 // malicious handshakes + status
76- {Name : "TestMaliciousHandshake " , Fn : s .TestMaliciousHandshake },
77- {Name : "TestMaliciousStatus " , Fn : s .TestMaliciousStatus },
76+ {Name : "TestMaliciousHandshake65 " , Fn : s .TestMaliciousHandshake65 },
77+ {Name : "TestMaliciousStatus65 " , Fn : s .TestMaliciousStatus65 },
7878 {Name : "TestMaliciousHandshake66" , Fn : s .TestMaliciousHandshake66 },
7979 {Name : "TestMaliciousStatus66" , Fn : s .TestMaliciousStatus66 },
8080 // test transactions
81- {Name : "TestTransaction " , Fn : s .TestTransaction },
81+ {Name : "TestTransaction65 " , Fn : s .TestTransaction65 },
8282 {Name : "TestTransaction66" , Fn : s .TestTransaction66 },
83- {Name : "TestMaliciousTx " , Fn : s .TestMaliciousTx },
83+ {Name : "TestMaliciousTx65 " , Fn : s .TestMaliciousTx65 },
8484 {Name : "TestMaliciousTx66" , Fn : s .TestMaliciousTx66 },
8585 {Name : "TestLargeTxRequest66" , Fn : s .TestLargeTxRequest66 },
8686 {Name : "TestNewPooledTxs66" , Fn : s .TestNewPooledTxs66 },
@@ -89,17 +89,17 @@ func (s *Suite) AllEthTests() []utesting.Test {
8989
9090func (s * Suite ) EthTests () []utesting.Test {
9191 return []utesting.Test {
92- {Name : "TestStatus " , Fn : s .TestStatus },
93- {Name : "TestGetBlockHeaders " , Fn : s .TestGetBlockHeaders },
94- {Name : "TestGetBlockBodies " , Fn : s .TestGetBlockBodies },
95- {Name : "TestBroadcast " , Fn : s .TestBroadcast },
96- {Name : "TestLargeAnnounce " , Fn : s .TestLargeAnnounce },
97- {Name : "TestOldAnnounce " , Fn : s .TestOldAnnounce },
98- {Name : "TestBlockHashAnnounce " , Fn : s .TestBlockHashAnnounce },
99- {Name : "TestMaliciousHandshake " , Fn : s .TestMaliciousHandshake },
100- {Name : "TestMaliciousStatus " , Fn : s .TestMaliciousStatus },
101- {Name : "TestTransaction " , Fn : s .TestTransaction },
102- {Name : "TestMaliciousTx " , Fn : s .TestMaliciousTx },
92+ {Name : "TestStatus65 " , Fn : s .TestStatus65 },
93+ {Name : "TestGetBlockHeaders65 " , Fn : s .TestGetBlockHeaders65 },
94+ {Name : "TestGetBlockBodies65 " , Fn : s .TestGetBlockBodies65 },
95+ {Name : "TestBroadcast65 " , Fn : s .TestBroadcast65 },
96+ {Name : "TestLargeAnnounce65 " , Fn : s .TestLargeAnnounce65 },
97+ {Name : "TestOldAnnounce65 " , Fn : s .TestOldAnnounce65 },
98+ {Name : "TestBlockHashAnnounce65 " , Fn : s .TestBlockHashAnnounce65 },
99+ {Name : "TestMaliciousHandshake65 " , Fn : s .TestMaliciousHandshake65 },
100+ {Name : "TestMaliciousStatus65 " , Fn : s .TestMaliciousStatus65 },
101+ {Name : "TestTransaction65 " , Fn : s .TestTransaction65 },
102+ {Name : "TestMaliciousTx65 " , Fn : s .TestMaliciousTx65 },
103103 }
104104}
105105
@@ -130,9 +130,9 @@ var (
130130 eth65 = false // indicates whether suite should negotiate eth65 connection or below.
131131)
132132
133- // TestStatus attempts to connect to the given node and exchange
133+ // TestStatus65 attempts to connect to the given node and exchange
134134// a status message with it.
135- func (s * Suite ) TestStatus (t * utesting.T ) {
135+ func (s * Suite ) TestStatus65 (t * utesting.T ) {
136136 conn , err := s .dial ()
137137 if err != nil {
138138 t .Fatalf ("dial failed: %v" , err )
@@ -156,9 +156,9 @@ func (s *Suite) TestStatus66(t *utesting.T) {
156156 }
157157}
158158
159- // TestGetBlockHeaders tests whether the given node can respond to
159+ // TestGetBlockHeaders65 tests whether the given node can respond to
160160// a `GetBlockHeaders` request accurately.
161- func (s * Suite ) TestGetBlockHeaders (t * utesting.T ) {
161+ func (s * Suite ) TestGetBlockHeaders65 (t * utesting.T ) {
162162 conn , err := s .dial ()
163163 if err != nil {
164164 t .Fatalf ("dial failed: %v" , err )
@@ -392,9 +392,9 @@ func (s *Suite) TestZeroRequestID66(t *utesting.T) {
392392 }
393393}
394394
395- // TestGetBlockBodies tests whether the given node can respond to
395+ // TestGetBlockBodies65 tests whether the given node can respond to
396396// a `GetBlockBodies` request and that the response is accurate.
397- func (s * Suite ) TestGetBlockBodies (t * utesting.T ) {
397+ func (s * Suite ) TestGetBlockBodies65 (t * utesting.T ) {
398398 conn , err := s .dial ()
399399 if err != nil {
400400 t .Fatalf ("dial failed: %v" , err )
@@ -460,9 +460,9 @@ func (s *Suite) TestGetBlockBodies66(t *utesting.T) {
460460 }
461461}
462462
463- // TestBroadcast tests whether a block announcement is correctly
463+ // TestBroadcast65 tests whether a block announcement is correctly
464464// propagated to the given node's peer(s).
465- func (s * Suite ) TestBroadcast (t * utesting.T ) {
465+ func (s * Suite ) TestBroadcast65 (t * utesting.T ) {
466466 if err := s .sendNextBlock (eth65 ); err != nil {
467467 t .Fatalf ("block broadcast failed: %v" , err )
468468 }
@@ -476,8 +476,8 @@ func (s *Suite) TestBroadcast66(t *utesting.T) {
476476 }
477477}
478478
479- // TestLargeAnnounce tests the announcement mechanism with a large block.
480- func (s * Suite ) TestLargeAnnounce (t * utesting.T ) {
479+ // TestLargeAnnounce65 tests the announcement mechanism with a large block.
480+ func (s * Suite ) TestLargeAnnounce65 (t * utesting.T ) {
481481 nextBlock := len (s .chain .blocks )
482482 blocks := []* NewBlock {
483483 {
@@ -569,8 +569,8 @@ func (s *Suite) TestLargeAnnounce66(t *utesting.T) {
569569 }
570570}
571571
572- // TestOldAnnounce tests the announcement mechanism with an old block.
573- func (s * Suite ) TestOldAnnounce (t * utesting.T ) {
572+ // TestOldAnnounce65 tests the announcement mechanism with an old block.
573+ func (s * Suite ) TestOldAnnounce65 (t * utesting.T ) {
574574 if err := s .oldAnnounce (eth65 ); err != nil {
575575 t .Fatal (err )
576576 }
@@ -584,9 +584,9 @@ func (s *Suite) TestOldAnnounce66(t *utesting.T) {
584584 }
585585}
586586
587- // TestBlockHashAnnounce sends a new block hash announcement and expects
587+ // TestBlockHashAnnounce65 sends a new block hash announcement and expects
588588// the node to perform a `GetBlockHeaders` request.
589- func (s * Suite ) TestBlockHashAnnounce (t * utesting.T ) {
589+ func (s * Suite ) TestBlockHashAnnounce65 (t * utesting.T ) {
590590 if err := s .hashAnnounce (eth65 ); err != nil {
591591 t .Fatalf ("block hash announcement failed: %v" , err )
592592 }
@@ -600,8 +600,8 @@ func (s *Suite) TestBlockHashAnnounce66(t *utesting.T) {
600600 }
601601}
602602
603- // TestMaliciousHandshake tries to send malicious data during the handshake.
604- func (s * Suite ) TestMaliciousHandshake (t * utesting.T ) {
603+ // TestMaliciousHandshake65 tries to send malicious data during the handshake.
604+ func (s * Suite ) TestMaliciousHandshake65 (t * utesting.T ) {
605605 if err := s .maliciousHandshakes (t , eth65 ); err != nil {
606606 t .Fatal (err )
607607 }
@@ -614,8 +614,8 @@ func (s *Suite) TestMaliciousHandshake66(t *utesting.T) {
614614 }
615615}
616616
617- // TestMaliciousStatus sends a status package with a large total difficulty.
618- func (s * Suite ) TestMaliciousStatus (t * utesting.T ) {
617+ // TestMaliciousStatus65 sends a status package with a large total difficulty.
618+ func (s * Suite ) TestMaliciousStatus65 (t * utesting.T ) {
619619 conn , err := s .dial ()
620620 if err != nil {
621621 t .Fatalf ("dial failed: %v" , err )
@@ -641,9 +641,9 @@ func (s *Suite) TestMaliciousStatus66(t *utesting.T) {
641641 }
642642}
643643
644- // TestTransaction sends a valid transaction to the node and
644+ // TestTransaction65 sends a valid transaction to the node and
645645// checks if the transaction gets propagated.
646- func (s * Suite ) TestTransaction (t * utesting.T ) {
646+ func (s * Suite ) TestTransaction65 (t * utesting.T ) {
647647 if err := s .sendSuccessfulTxs (t , eth65 ); err != nil {
648648 t .Fatal (err )
649649 }
@@ -657,9 +657,9 @@ func (s *Suite) TestTransaction66(t *utesting.T) {
657657 }
658658}
659659
660- // TestMaliciousTx sends several invalid transactions and tests whether
660+ // TestMaliciousTx65 sends several invalid transactions and tests whether
661661// the node will propagate them.
662- func (s * Suite ) TestMaliciousTx (t * utesting.T ) {
662+ func (s * Suite ) TestMaliciousTx65 (t * utesting.T ) {
663663 if err := s .sendMaliciousTxs (t , eth65 ); err != nil {
664664 t .Fatal (err )
665665 }
0 commit comments