@@ -328,7 +328,7 @@ pub fn standardize_bitcoin_block(
328
328
block : BitcoinBlockFullBreakdown ,
329
329
network : & BitcoinNetwork ,
330
330
ctx : & Context ,
331
- ) -> Result < BitcoinBlockData , String > {
331
+ ) -> Result < BitcoinBlockData , ( String , bool ) > {
332
332
let mut transactions = vec ! [ ] ;
333
333
let block_height = block. height as u64 ;
334
334
let expected_magic_bytes = get_stacks_canonical_magic_bytes ( & network) ;
@@ -364,24 +364,36 @@ pub fn standardize_bitcoin_block(
364
364
if input. is_coinbase ( ) {
365
365
continue ;
366
366
}
367
- let prevout = input. prevout . as_ref ( ) . ok_or ( format ! (
368
- "error retrieving prevout for transaction {}, input #{} (block #{})" ,
369
- tx. txid, index, block. height
367
+ let prevout = input. prevout . as_ref ( ) . ok_or ( (
368
+ format ! (
369
+ "error retrieving prevout for transaction {}, input #{} (block #{})" ,
370
+ tx. txid, index, block. height
371
+ ) ,
372
+ true ,
370
373
) ) ?;
371
374
372
- let txid = input. txid . as_ref ( ) . ok_or ( format ! (
373
- "error retrieving txid for transaction {}, input #{} (block #{})" ,
374
- tx. txid, index, block. height
375
+ let txid = input. txid . as_ref ( ) . ok_or ( (
376
+ format ! (
377
+ "error retrieving txid for transaction {}, input #{} (block #{})" ,
378
+ tx. txid, index, block. height
379
+ ) ,
380
+ true ,
375
381
) ) ?;
376
382
377
- let vout = input. vout . ok_or ( format ! (
378
- "error retrieving vout for transaction {}, input #{} (block #{})" ,
379
- tx. txid, index, block. height
383
+ let vout = input. vout . ok_or ( (
384
+ format ! (
385
+ "error retrieving vout for transaction {}, input #{} (block #{})" ,
386
+ tx. txid, index, block. height
387
+ ) ,
388
+ true ,
380
389
) ) ?;
381
390
382
- let script_sig = input. script_sig . ok_or ( format ! (
383
- "error retrieving script_sig for transaction {}, input #{} (block #{})" ,
384
- tx. txid, index, block. height
391
+ let script_sig = input. script_sig . ok_or ( (
392
+ format ! (
393
+ "error retrieving script_sig for transaction {}, input #{} (block #{})" ,
394
+ tx. txid, index, block. height
395
+ ) ,
396
+ true ,
385
397
) ) ?;
386
398
387
399
sats_in += prevout. value . to_sat ( ) ;
0 commit comments