File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,11 @@ pub trait RpcApi: Sized {
665
665
self . call ( "lockunspent" , & [ true . into ( ) , outputs. into ( ) ] )
666
666
}
667
667
668
+ /// Unlock all unspent UTXOs.
669
+ fn unlock_unspent_all ( & self ) -> Result < bool > {
670
+ self . call ( "lockunspent" , & [ true . into ( ) ] )
671
+ }
672
+
668
673
fn list_received_by_address (
669
674
& self ,
670
675
address_filter : Option < & Address > ,
Original file line number Diff line number Diff line change @@ -467,6 +467,9 @@ fn test_lock_unspent_unlock_unspent(cl: &Client) {
467
467
468
468
assert ! ( cl. lock_unspent( & [ OutPoint :: new( txid, 0 ) ] ) . unwrap( ) ) ;
469
469
assert ! ( cl. unlock_unspent( & [ OutPoint :: new( txid, 0 ) ] ) . unwrap( ) ) ;
470
+
471
+ assert ! ( cl. lock_unspent( & [ OutPoint :: new( txid, 0 ) ] ) . unwrap( ) ) ;
472
+ assert ! ( cl. unlock_unspent_all( ) . unwrap( ) ) ;
470
473
}
471
474
472
475
fn test_get_block_filter ( cl : & Client ) {
You can’t perform that action at this time.
0 commit comments