@@ -3,7 +3,6 @@ mod block_acquisition_action;
33mod block_builder;
44mod block_synchronizer_progress;
55mod config;
6- mod deploy_acquisition;
76mod error;
87mod event;
98mod execution_results_acquisition;
@@ -12,6 +11,7 @@ mod metrics;
1211mod need_next;
1312mod peer_list;
1413mod signature_acquisition;
14+ mod transaction_acquisition;
1515mod trie_accumulator;
1616
1717#[ cfg( test) ]
@@ -588,7 +588,7 @@ impl BlockSynchronizer {
588588 node_id,
589589 Box :: new ( EmptyValidationMetadata ) ,
590590 )
591- . event ( move |result| Event :: DeployFetched {
591+ . event ( move |result| Event :: TransactionFetched {
592592 block_hash,
593593 result : Either :: Left ( result) ,
594594 } )
@@ -603,7 +603,7 @@ impl BlockSynchronizer {
603603 node_id,
604604 Box :: new ( EmptyValidationMetadata ) ,
605605 )
606- . event ( move |result| Event :: DeployFetched {
606+ . event ( move |result| Event :: TransactionFetched {
607607 block_hash,
608608 result : Either :: Right ( result) ,
609609 } )
@@ -1186,8 +1186,8 @@ impl BlockSynchronizer {
11861186 } ;
11871187
11881188 if let Some ( builder) = self . get_builder ( block_hash, false ) {
1189- if let Err ( error) = builder. register_deploy ( txn. fetch_id ( ) , maybe_peer) {
1190- error ! ( %block_hash, %error, "BlockSynchronizer: failed to apply deploy " ) ;
1189+ if let Err ( error) = builder. register_transaction ( txn. fetch_id ( ) , maybe_peer) {
1190+ error ! ( %block_hash, %error, "BlockSynchronizer: failed to apply transaction " ) ;
11911191 }
11921192 }
11931193 }
@@ -1362,7 +1362,7 @@ impl<REv: ReactorEvent> Component<REv> for BlockSynchronizer {
13621362 | Event :: SyncLeapFetched ( _)
13631363 | Event :: GlobalStateSynced { .. }
13641364 | Event :: GotExecutionResultsChecksum { .. }
1365- | Event :: DeployFetched { .. }
1365+ | Event :: TransactionFetched { .. }
13661366 | Event :: ExecutionResultsFetched { .. }
13671367 | Event :: ExecutionResultsStored ( _)
13681368 | Event :: AccumulatedPeers ( _, _)
@@ -1513,7 +1513,7 @@ impl<REv: ReactorEvent> Component<REv> for BlockSynchronizer {
15131513 self . need_next ( effect_builder, rng)
15141514 }
15151515 // for both historical and forward sync, post-1.4 blocks track approvals hashes
1516- // for the deploys they contain
1516+ // for the transactions they contain
15171517 Event :: ApprovalsHashesFetched ( result) => {
15181518 self . approvals_hashes_fetched ( result) ;
15191519 self . need_next ( effect_builder, rng)
@@ -1545,9 +1545,10 @@ impl<REv: ReactorEvent> Component<REv> for BlockSynchronizer {
15451545 self . execution_results_stored ( block_hash) ;
15461546 self . need_next ( effect_builder, rng)
15471547 }
1548- // for pre-1.5 blocks we use the legacy deploy fetcher, otherwise we use the deploy
1549- // fetcher but the results of both are forwarded to this handler
1550- Event :: DeployFetched { block_hash, result } => {
1548+ // for pre-1.5 blocks we use the legacy deploy fetcher, otherwise we use the
1549+ // transaction fetcher but the results of both are forwarded to this
1550+ // handler
1551+ Event :: TransactionFetched { block_hash, result } => {
15511552 match result {
15521553 Either :: Left ( Ok ( fetched_legacy_deploy) ) => {
15531554 let deploy_id = fetched_legacy_deploy. id ( ) ;
@@ -1561,7 +1562,7 @@ impl<REv: ReactorEvent> Component<REv> for BlockSynchronizer {
15611562 }
15621563 Either :: Left ( Err ( error) ) => {
15631564 if let Some ( builder) = self . get_builder ( block_hash, false ) {
1564- if builder. waiting_for_deploys ( ) {
1565+ if builder. waiting_for_transactions ( ) {
15651566 builder. latch_decrement ( ) ;
15661567 }
15671568 }
@@ -1570,12 +1571,12 @@ impl<REv: ReactorEvent> Component<REv> for BlockSynchronizer {
15701571 }
15711572 Either :: Right ( Err ( error) ) => {
15721573 if let Some ( builder) = self . get_builder ( block_hash, false ) {
1573- if builder. waiting_for_deploys ( ) {
1574+ if builder. waiting_for_transactions ( ) {
15741575 builder. latch_decrement ( ) ;
15751576 }
15761577 }
15771578
1578- debug ! ( %error, "BlockSynchronizer: failed to fetch deploy " ) ;
1579+ debug ! ( %error, "BlockSynchronizer: failed to fetch transaction " ) ;
15791580 }
15801581 } ;
15811582 self . need_next ( effect_builder, rng)
0 commit comments