@@ -2067,7 +2067,7 @@ pub(crate) mod test {
2067
2067
. set_sync_time ( sync_time)
2068
2068
. unwrap ( ) ;
2069
2069
let current_height = 25 ;
2070
- builder. set_current_height ( current_height) ;
2070
+ builder. current_height ( current_height) ;
2071
2071
let ( psbt, _) = builder. finish ( ) . unwrap ( ) ;
2072
2072
2073
2073
// current_height will override the last sync height
@@ -2115,7 +2115,7 @@ pub(crate) mod test {
2115
2115
let mut builder = wallet. build_tx ( ) ;
2116
2116
builder
2117
2117
. add_recipient ( addr. script_pubkey ( ) , 25_000 )
2118
- . set_current_height ( 630_001 )
2118
+ . current_height ( 630_001 )
2119
2119
. nlocktime ( 630_000 ) ;
2120
2120
let ( psbt, _) = builder. finish ( ) . unwrap ( ) ;
2121
2121
@@ -4916,7 +4916,7 @@ pub(crate) mod test {
4916
4916
let mut builder = wallet. build_tx ( ) ;
4917
4917
builder
4918
4918
. add_recipient ( addr. script_pubkey ( ) , balance / 2 )
4919
- . set_current_height ( confirmation_time) ;
4919
+ . current_height ( confirmation_time) ;
4920
4920
assert ! ( matches!(
4921
4921
builder. finish( ) . unwrap_err( ) ,
4922
4922
Error :: InsufficientFunds {
@@ -4929,7 +4929,7 @@ pub(crate) mod test {
4929
4929
let mut builder = wallet. build_tx ( ) ;
4930
4930
builder
4931
4931
. add_recipient ( addr. script_pubkey ( ) , balance / 2 )
4932
- . set_current_height ( not_yet_mature_time) ;
4932
+ . current_height ( not_yet_mature_time) ;
4933
4933
assert ! ( matches!(
4934
4934
builder. finish( ) . unwrap_err( ) ,
4935
4935
Error :: InsufficientFunds {
@@ -4942,7 +4942,7 @@ pub(crate) mod test {
4942
4942
let mut builder = wallet. build_tx ( ) ;
4943
4943
builder
4944
4944
. add_recipient ( addr. script_pubkey ( ) , balance / 2 )
4945
- . set_current_height ( maturity_time) ;
4945
+ . current_height ( maturity_time) ;
4946
4946
builder. finish ( ) . unwrap ( ) ;
4947
4947
}
4948
4948
}
0 commit comments