@@ -1099,6 +1099,7 @@ mod tests {
10991099 use crate :: { BFT , helpers:: now, ledger_service:: CoreLedgerService , storage_service:: BFTMemoryService } ;
11001100
11011101 use snarkos_account:: Account ;
1102+ use snarkos_node_network:: ConnectionMode ;
11021103 use snarkos_node_sync:: BlockSync ;
11031104 use snarkos_utilities:: { NodeDataDir , SimpleStoppable } ;
11041105
@@ -1356,7 +1357,7 @@ mod tests {
13561357 )
13571358 . unwrap ( ) ;
13581359
1359- let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) ) ) ;
1360+ let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) , ConnectionMode :: Gateway ) ) ;
13601361 let sync = Sync :: new ( gateway. clone ( ) , syncing_storage. clone ( ) , syncing_ledger. clone ( ) , block_sync. clone ( ) ) ;
13611362
13621363 let syncing_bft = BFT :: new (
@@ -1425,7 +1426,7 @@ mod tests {
14251426 )
14261427 . unwrap ( ) ;
14271428
1428- let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) ) ) ;
1429+ let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) , ConnectionMode :: Gateway ) ) ;
14291430 let sync = Sync :: new ( gateway. clone ( ) , syncing_storage. clone ( ) , syncing_ledger. clone ( ) , block_sync. clone ( ) ) ;
14301431
14311432 let syncing_bft = BFT :: new (
@@ -1516,7 +1517,7 @@ mod tests {
15161517 )
15171518 . unwrap ( ) ;
15181519
1519- let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) ) ) ;
1520+ let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) , ConnectionMode :: Gateway ) ) ;
15201521 let sync = Sync :: new ( gateway. clone ( ) , syncing_storage. clone ( ) , syncing_ledger. clone ( ) , block_sync. clone ( ) ) ;
15211522
15221523 let syncing_bft = BFT :: new (
@@ -1601,7 +1602,7 @@ mod tests {
16011602 )
16021603 . unwrap ( ) ;
16031604
1604- let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) ) ) ;
1605+ let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) , ConnectionMode :: Gateway ) ) ;
16051606 let sync = Sync :: new ( gateway. clone ( ) , syncing_storage. clone ( ) , syncing_ledger. clone ( ) , block_sync. clone ( ) ) ;
16061607
16071608 let syncing_bft = BFT :: new (
@@ -1683,7 +1684,7 @@ mod tests {
16831684 )
16841685 . unwrap ( ) ;
16851686
1686- let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) ) ) ;
1687+ let block_sync = Arc :: new ( BlockSync :: new ( syncing_ledger. clone ( ) , ConnectionMode :: Gateway ) ) ;
16871688 let sync = Sync :: new ( gateway. clone ( ) , syncing_storage. clone ( ) , syncing_ledger. clone ( ) , block_sync. clone ( ) ) ;
16881689
16891690 let syncing_bft = BFT :: new (
0 commit comments