@@ -1084,10 +1084,10 @@ mod slow {
10841084 scenarios:: faucet_recipient_default ( ) . await ;
10851085
10861086 // 2. Get an incoming transaction to a t address
1087- let taddr = get_base_address_macro ! ( recipient, "transparent" ) ;
1087+ let recipient_taddr = get_base_address_macro ! ( recipient, "transparent" ) ;
10881088 let value = 100_000 ;
10891089
1090- from_inputs:: quick_send ( & faucet, vec ! [ ( taddr . as_str( ) , value, None ) ] )
1090+ from_inputs:: quick_send ( & faucet, vec ! [ ( recipient_taddr . as_str( ) , value, None ) ] )
10911091 . await
10921092 . unwrap ( ) ;
10931093
@@ -1099,7 +1099,10 @@ mod slow {
10991099 // 3. Test the list
11001100 let list = recipient. do_list_transactions ( ) . await ;
11011101 assert_eq ! ( list[ 0 ] [ "block_height" ] . as_u64( ) . unwrap( ) , 4 ) ;
1102- assert_eq ! ( list[ 0 ] [ "address" ] , taddr) ;
1102+ assert_eq ! (
1103+ recipient. do_addresses( ) . await [ 0 ] [ "receivers" ] [ "transparent" ] . to_string( ) ,
1104+ recipient_taddr
1105+ ) ;
11031106 assert_eq ! ( list[ 0 ] [ "amount" ] . as_u64( ) . unwrap( ) , value) ;
11041107
11051108 // 4. We can't spend the funds, as they're transparent. We need to shield first
@@ -3228,69 +3231,6 @@ mod slow {
32283231 serde_json:: to_string_pretty( & recipient. do_balance( ) . await ) . unwrap( )
32293232 ) ;
32303233 }
3231- #[ tokio:: test]
3232- async fn dont_write_pending ( ) {
3233- let regtest_network = RegtestNetwork :: all_upgrades_active ( ) ;
3234- let ( regtest_manager, _cph, faucet, recipient) = scenarios:: faucet_recipient (
3235- PoolType :: Shielded ( ShieldedProtocol :: Orchard ) ,
3236- regtest_network,
3237- )
3238- . await ;
3239- from_inputs:: quick_send (
3240- & faucet,
3241- vec ! [ (
3242- & get_base_address_macro!( recipient, "unified" ) ,
3243- 100_000 ,
3244- Some ( "funding to be received by the recipient" ) ,
3245- ) ] ,
3246- )
3247- . await
3248- . unwrap ( ) ;
3249-
3250- zingolib:: testutils:: increase_height_and_wait_for_client ( & regtest_manager, & recipient, 2 )
3251- . await
3252- . unwrap ( ) ;
3253- let recipient_balance = recipient. do_balance ( ) . await ;
3254- assert_eq ! (
3255- recipient_balance,
3256- PoolBalances {
3257- sapling_balance: Some ( 0 ) ,
3258- verified_sapling_balance: Some ( 0 ) ,
3259- spendable_sapling_balance: Some ( 0 ) ,
3260- unverified_sapling_balance: Some ( 0 ) ,
3261- orchard_balance: Some ( 100000 ) ,
3262- verified_orchard_balance: Some ( 100000 ) ,
3263- spendable_orchard_balance: Some ( 100000 ) ,
3264- unverified_orchard_balance: Some ( 0 ) ,
3265- transparent_balance: Some ( 0 )
3266- }
3267- ) ;
3268- from_inputs:: quick_send (
3269- & recipient,
3270- vec ! [ (
3271- & get_base_address_macro!( faucet, "unified" ) ,
3272- 25_000 ,
3273- Some ( "an pending transaction, that shall not be synced" ) ,
3274- ) ] ,
3275- )
3276- . await
3277- . unwrap ( ) ;
3278- let recipient_balance = recipient. do_balance ( ) . await ;
3279-
3280- dbg ! ( & recipient_balance. unverified_orchard_balance) ;
3281- assert_eq ! (
3282- recipient_balance. unverified_orchard_balance. unwrap( ) ,
3283- 65_000
3284- ) ;
3285-
3286- let loaded_client =
3287- zingolib:: testutils:: lightclient:: new_client_from_save_buffer ( & recipient)
3288- . await
3289- . unwrap ( ) ;
3290- let loaded_balance = loaded_client. do_balance ( ) . await ;
3291- assert_eq ! ( loaded_balance. unverified_orchard_balance, Some ( 0 ) , ) ;
3292- check_client_balances ! ( loaded_client, o: 100_000 s: 0 t: 0 ) ;
3293- }
32943234
32953235 #[ tokio:: test]
32963236 async fn by_address_finsight ( ) {
0 commit comments