@@ -61,7 +61,7 @@ func (h *testEthHandler) Handle(peer *eth.Peer, packet eth.Packet) error {
6161 h .blockBroadcasts .Send (packet .Block )
6262 return nil
6363
64- case * eth.NewPooledTransactionHashesPacket67 :
64+ case * eth.NewPooledTransactionHashesPacket66 :
6565 h .txAnnounces .Send (([]common.Hash )(* packet ))
6666 return nil
6767
@@ -85,6 +85,8 @@ func (h *testEthHandler) Handle(peer *eth.Peer, packet eth.Packet) error {
8585// Tests that peers are correctly accepted (or rejected) based on the advertised
8686// fork IDs in the protocol handshake.
8787func TestForkIDSplit66 (t * testing.T ) { testForkIDSplit (t , eth .ETH66 ) }
88+ func TestForkIDSplit67 (t * testing.T ) { testForkIDSplit (t , eth .ETH67 ) }
89+ func TestForkIDSplit68 (t * testing.T ) { testForkIDSplit (t , eth .ETH68 ) }
8890
8991func testForkIDSplit (t * testing.T , protocol uint ) {
9092 t .Parallel ()
@@ -239,6 +241,8 @@ func testForkIDSplit(t *testing.T, protocol uint) {
239241
240242// Tests that received transactions are added to the local pool.
241243func TestRecvTransactions66 (t * testing.T ) { testRecvTransactions (t , eth .ETH66 ) }
244+ func TestRecvTransactions67 (t * testing.T ) { testRecvTransactions (t , eth .ETH67 ) }
245+ func TestRecvTransactions68 (t * testing.T ) { testRecvTransactions (t , eth .ETH68 ) }
242246
243247func testRecvTransactions (t * testing.T , protocol uint ) {
244248 t .Parallel ()
@@ -296,6 +300,7 @@ func testRecvTransactions(t *testing.T, protocol uint) {
296300
297301// This test checks that pending transactions are sent.
298302func TestSendTransactions66 (t * testing.T ) { testSendTransactions (t , eth .ETH66 ) }
303+ func TestSendTransactions67 (t * testing.T ) { testSendTransactions (t , eth .ETH67 ) }
299304func TestSendTransactions68 (t * testing.T ) { testSendTransactions (t , eth .ETH68 ) }
300305
301306func testSendTransactions (t * testing.T , protocol uint ) {
@@ -355,7 +360,7 @@ func testSendTransactions(t *testing.T, protocol uint) {
355360 seen := make (map [common.Hash ]struct {})
356361 for len (seen ) < len (insert ) {
357362 switch protocol {
358- case 66 , 68 :
363+ case 66 , 67 , 68 :
359364 select {
360365 case hashes := <- anns :
361366 for _ , hash := range hashes {
@@ -382,7 +387,7 @@ func testSendTransactions(t *testing.T, protocol uint) {
382387// Tests that transactions get propagated to all attached peers, either via direct
383388// broadcasts or via announcements/retrievals.
384389func TestTransactionPropagation66 (t * testing.T ) { testTransactionPropagation (t , eth .ETH66 ) }
385-
390+ func TestTransactionPropagation67 ( t * testing. T ) { testTransactionPropagation ( t , eth . ETH67 ) }
386391func TestTransactionPropagation68 (t * testing.T ) { testTransactionPropagation (t , eth .ETH68 ) }
387392
388393func testTransactionPropagation (t * testing.T , protocol uint ) {
@@ -685,6 +690,8 @@ func testBroadcastBlock(t *testing.T, peers, bcasts int) {
685690// Tests that a propagated malformed block (uncles or transactions don't match
686691// with the hashes in the header) gets discarded and not broadcast forward.
687692func TestBroadcastMalformedBlock66 (t * testing.T ) { testBroadcastMalformedBlock (t , eth .ETH66 ) }
693+ func TestBroadcastMalformedBlock67 (t * testing.T ) { testBroadcastMalformedBlock (t , eth .ETH67 ) }
694+ func TestBroadcastMalformedBlock68 (t * testing.T ) { testBroadcastMalformedBlock (t , eth .ETH68 ) }
688695
689696func testBroadcastMalformedBlock (t * testing.T , protocol uint ) {
690697 t .Parallel ()
0 commit comments