@@ -495,7 +495,7 @@ func testCheckpointChallenge(t *testing.T, syncmode downloader.SyncMode, checkpo
495
495
if err != nil {
496
496
t .Fatalf ("failed to create new blockchain: %v" , err )
497
497
}
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 )
499
499
if err != nil {
500
500
t .Fatalf ("failed to start test protocol manager: %v" , err )
501
501
}
@@ -582,7 +582,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
582
582
if err != nil {
583
583
t .Fatalf ("failed to create new blockchain: %v" , err )
584
584
}
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 )
586
586
if err != nil {
587
587
t .Fatalf ("failed to start test protocol manager: %v" , err )
588
588
}
@@ -643,7 +643,7 @@ func TestBroadcastMalformedBlock(t *testing.T) {
643
643
if err != nil {
644
644
t .Fatalf ("failed to create new blockchain: %v" , err )
645
645
}
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 )
647
647
if err != nil {
648
648
t .Fatalf ("failed to start test protocol manager: %v" , err )
649
649
}
0 commit comments