Commit 33790f1
committed
fix(bitcoin-da): propagate get_block_info error in determine_tx_status instead of defaulting to 0
Using .unwrap_or(0) silently sets block_height to 0 when get_block_info
fails for a confirmed transaction, corrupting the monitored status with
a false genesis-block height. Propagate the error with ? instead.1 parent 0f40b48 commit 33790f1
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
711 | | - | |
712 | | - | |
| 710 | + | |
| 711 | + | |
713 | 712 | | |
714 | 713 | | |
715 | 714 | | |
| |||
0 commit comments