File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3
3
//! Client crate mocks the `Client` struct in `bitcoincore-rpc`.
4
4
5
5
use crate :: ledger:: Ledger ;
6
- use bitcoin_simulator:: database:: Database ;
7
6
8
7
mod rpc_api;
9
8
@@ -23,11 +22,8 @@ impl Client {
23
22
///
24
23
/// # Panics
25
24
///
26
- /// This function will panic if connection to the SQLite database cannot be
27
- /// established.
25
+ /// This function can panic if `Ledger` can't be created.
28
26
pub fn new ( _url : & str , _auth : bitcoincore_rpc:: Auth ) -> bitcoincore_rpc:: Result < Self > {
29
- let database = Database :: connect_temporary_database ( ) . unwrap ( ) ;
30
-
31
27
Ok ( Self {
32
28
ledger : Ledger :: new ( ) ,
33
29
} )
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ mod tests {
342
342
value : Amount :: from_sat ( 1 ) ,
343
343
script_pubkey : address. script_pubkey ( ) ,
344
344
} ;
345
- let tx = Transaction {
345
+ let _tx = Transaction {
346
346
version : bitcoin:: transaction:: Version ( 2 ) ,
347
347
lock_time : absolute:: LockTime :: from_consensus ( 0 ) ,
348
348
input : vec ! [ ] ,
@@ -367,7 +367,7 @@ mod tests {
367
367
value : Amount :: from_sat ( 1 ) ,
368
368
script_pubkey : address. script_pubkey ( ) ,
369
369
} ;
370
- let tx = Transaction {
370
+ let _tx = Transaction {
371
371
version : bitcoin:: transaction:: Version ( 2 ) ,
372
372
lock_time : absolute:: LockTime :: from_consensus ( 0 ) ,
373
373
input : vec ! [ ] ,
You can’t perform that action at this time.
0 commit comments