@@ -169,11 +169,20 @@ pub async fn scan_bitcoin_chain_with_predicate(
169
169
let block_hash = retrieve_block_hash_with_retry ( & cursor, & bitcoin_config, ctx) . await ?;
170
170
let block_breakdown =
171
171
download_and_parse_block_with_retry ( & block_hash, & bitcoin_config, ctx) . await ?;
172
- let mut block = indexer:: bitcoin:: standardize_bitcoin_block (
172
+ let mut block = match indexer:: bitcoin:: standardize_bitcoin_block (
173
173
block_breakdown,
174
174
& event_observer_config. bitcoin_network ,
175
175
ctx,
176
- ) ?;
176
+ ) {
177
+ Ok ( data) => data,
178
+ Err ( e) => {
179
+ warn ! (
180
+ ctx. expect_logger( ) ,
181
+ "Unable to standardize block#{} {}: {}" , cursor, block_hash, e
182
+ ) ;
183
+ continue ;
184
+ }
185
+ } ;
177
186
178
187
update_storage_and_augment_bitcoin_block_with_inscription_reveal_data (
179
188
& mut block,
@@ -215,11 +224,21 @@ pub async fn scan_bitcoin_chain_with_predicate(
215
224
let block_hash = retrieve_block_hash_with_retry ( & cursor, & bitcoin_config, ctx) . await ?;
216
225
let block_breakdown =
217
226
download_and_parse_block_with_retry ( & block_hash, & bitcoin_config, ctx) . await ?;
218
- let block = indexer:: bitcoin:: standardize_bitcoin_block (
227
+
228
+ let block = match indexer:: bitcoin:: standardize_bitcoin_block (
219
229
block_breakdown,
220
230
& event_observer_config. bitcoin_network ,
221
231
ctx,
222
- ) ?;
232
+ ) {
233
+ Ok ( data) => data,
234
+ Err ( e) => {
235
+ warn ! (
236
+ ctx. expect_logger( ) ,
237
+ "Unable to standardize block#{} {}: {}" , cursor, block_hash, e
238
+ ) ;
239
+ continue ;
240
+ }
241
+ } ;
223
242
224
243
let chain_event =
225
244
BitcoinChainEvent :: ChainUpdatedWithBlocks ( BitcoinChainUpdatedWithBlocksData {
0 commit comments