@@ -6,12 +6,12 @@ use bdk_chain::{
66 ConfirmationTimeHeightAnchor , IndexedTxGraph , SpkTxOutIndex ,
77} ;
88use bdk_electrum:: ElectrumExt ;
9- use bdk_testenv:: { anyhow, anyhow :: Result , bitcoincore_rpc:: RpcApi , TestEnv } ;
9+ use bdk_testenv:: { anyhow, bitcoincore_rpc:: RpcApi , TestEnv } ;
1010
1111fn get_balance (
1212 recv_chain : & LocalChain ,
1313 recv_graph : & IndexedTxGraph < ConfirmationTimeHeightAnchor , SpkTxOutIndex < ( ) > > ,
14- ) -> Result < Balance > {
14+ ) -> anyhow :: Result < Balance > {
1515 let chain_tip = recv_chain. tip ( ) . block_id ( ) ;
1616 let outpoints = recv_graph. index . outpoints ( ) . clone ( ) ;
1717 let balance = recv_graph
@@ -27,7 +27,7 @@ fn get_balance(
2727/// 3. Mine extra block to confirm sent tx.
2828/// 4. Check [`Balance`] to ensure tx is confirmed.
2929#[ test]
30- fn scan_detects_confirmed_tx ( ) -> Result < ( ) > {
30+ fn scan_detects_confirmed_tx ( ) -> anyhow :: Result < ( ) > {
3131 const SEND_AMOUNT : Amount = Amount :: from_sat ( 10_000 ) ;
3232
3333 let env = TestEnv :: new ( ) ?;
@@ -117,7 +117,7 @@ fn scan_detects_confirmed_tx() -> Result<()> {
117117/// 3. Perform 8 separate reorgs on each block with a confirmed tx.
118118/// 4. Check [`Balance`] after each reorg to ensure unconfirmed amount is correct.
119119#[ test]
120- fn tx_can_become_unconfirmed_after_reorg ( ) -> Result < ( ) > {
120+ fn tx_can_become_unconfirmed_after_reorg ( ) -> anyhow :: Result < ( ) > {
121121 const REORG_COUNT : usize = 8 ;
122122 const SEND_AMOUNT : Amount = Amount :: from_sat ( 10_000 ) ;
123123
0 commit comments