@@ -128,9 +128,11 @@ impl BlockBuilder {
128
128
}
129
129
130
130
async fn get_transactions ( & mut self , in_progress : & mut InProgressBlock ) {
131
+ tracing:: info!( "query transactions from cache" ) ;
131
132
let txns = self . tx_poller . check_tx_cache ( ) . await ;
132
133
match txns {
133
134
Ok ( txns) => {
135
+ tracing:: info!( "got transactions response" ) ;
134
136
for txn in txns. into_iter ( ) {
135
137
in_progress. ingest_tx ( & txn) ;
136
138
}
@@ -142,10 +144,12 @@ impl BlockBuilder {
142
144
self . tx_poller . evict ( ) ;
143
145
}
144
146
145
- async fn get_bundles ( & mut self , in_progress : & mut InProgressBlock ) {
147
+ async fn _get_bundles ( & mut self , in_progress : & mut InProgressBlock ) {
148
+ tracing:: info!( "query bundles from cache" ) ;
146
149
let bundles = self . bundle_poller . check_bundle_cache ( ) . await ;
147
150
match bundles {
148
151
Ok ( bundles) => {
152
+ tracing:: info!( "got bundles response" ) ;
149
153
for bundle in bundles {
150
154
in_progress. ingest_bundle ( bundle) ;
151
155
}
@@ -177,23 +181,25 @@ impl BlockBuilder {
177
181
loop {
178
182
// sleep the buffer time
179
183
tokio:: time:: sleep ( Duration :: from_secs ( self . secs_to_next_target ( ) ) ) . await ;
180
- tracing:: trace !( "beginning block build cycle" ) ;
184
+ tracing:: info !( "beginning block build cycle" ) ;
181
185
182
186
// Build a block
183
187
let mut in_progress = InProgressBlock :: default ( ) ;
184
188
self . get_transactions ( & mut in_progress) . await ;
185
- self . get_bundles ( & mut in_progress) . await ;
189
+
190
+ // TODO: Implement bundle ingestion #later
191
+ // self.get_bundles(&mut in_progress).await;
186
192
187
193
// submit the block if it has transactions
188
194
if !in_progress. is_empty ( ) {
189
- tracing:: debug !( txns = in_progress. len( ) , "sending block to submit task" ) ;
195
+ tracing:: info !( txns = in_progress. len( ) , "sending block to submit task" ) ;
190
196
let in_progress_block = std:: mem:: take ( & mut in_progress) ;
191
197
if outbound. send ( in_progress_block) . is_err ( ) {
192
198
tracing:: debug!( "downstream task gone" ) ;
193
199
break ;
194
200
}
195
201
} else {
196
- tracing:: debug !( "no transactions, skipping block submission" ) ;
202
+ tracing:: info !( "no transactions, skipping block submission" ) ;
197
203
}
198
204
}
199
205
}
0 commit comments