@@ -495,7 +495,7 @@ func testCheckpointChallenge(t *testing.T, syncmode downloader.SyncMode, checkpo
495495 if err != nil {
496496 t .Fatalf ("failed to create new blockchain: %v" , err )
497497 }
498- pm , err := NewProtocolManager (config , cht , syncmode , DefaultConfig .NetworkId , new (event.TypeMux ), & testTxPool {pool : make (map [common.Hash ]* types.Transaction )}, ethash .NewFaker (), blockchain , db , 1 , nil )
498+ pm , err := NewProtocolManager (config , cht , syncmode , DefaultConfig .NetworkId , new (event.TypeMux ), & testTxPool {pool : make (map [common.Hash ]* types.Transaction )}, ethash .NewFaker (), blockchain , db , 1 , nil , false )
499499 if err != nil {
500500 t .Fatalf ("failed to start test protocol manager: %v" , err )
501501 }
@@ -582,7 +582,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
582582 if err != nil {
583583 t .Fatalf ("failed to create new blockchain: %v" , err )
584584 }
585- pm , err := NewProtocolManager (config , nil , downloader .FullSync , DefaultConfig .NetworkId , evmux , & testTxPool {pool : make (map [common.Hash ]* types.Transaction )}, pow , blockchain , db , 1 , nil )
585+ pm , err := NewProtocolManager (config , nil , downloader .FullSync , DefaultConfig .NetworkId , evmux , & testTxPool {pool : make (map [common.Hash ]* types.Transaction )}, pow , blockchain , db , 1 , nil , false )
586586 if err != nil {
587587 t .Fatalf ("failed to start test protocol manager: %v" , err )
588588 }
@@ -643,7 +643,7 @@ func TestBroadcastMalformedBlock(t *testing.T) {
643643 if err != nil {
644644 t .Fatalf ("failed to create new blockchain: %v" , err )
645645 }
646- pm , err := NewProtocolManager (config , nil , downloader .FullSync , DefaultConfig .NetworkId , new (event.TypeMux ), new (testTxPool ), engine , blockchain , db , 1 , nil )
646+ pm , err := NewProtocolManager (config , nil , downloader .FullSync , DefaultConfig .NetworkId , new (event.TypeMux ), new (testTxPool ), engine , blockchain , db , 1 , nil , false )
647647 if err != nil {
648648 t .Fatalf ("failed to start test protocol manager: %v" , err )
649649 }
0 commit comments