File tree Expand file tree Collapse file tree 6 files changed +22
-11
lines changed Expand file tree Collapse file tree 6 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub(crate) mod conduct_chain {
61
61
elf
62
62
}
63
63
64
- fn lightserver_uri ( ) -> Option < Uri > {
64
+ fn lightserver_uri ( & self ) -> Option < http :: Uri > {
65
65
Some ( self . client_builder . server_id . clone ( ) )
66
66
}
67
67
@@ -87,10 +87,11 @@ pub(crate) mod conduct_chain {
87
87
}
88
88
89
89
async fn bump_chain ( & mut self ) {
90
- let height_before = zingolib:: grpc_connector:: get_latest_block ( self . lightserver_uri ( ) )
91
- . await
92
- . unwrap ( )
93
- . height ;
90
+ let height_before =
91
+ zingolib:: grpc_connector:: get_latest_block ( self . lightserver_uri ( ) . unwrap ( ) )
92
+ . await
93
+ . unwrap ( )
94
+ . height ;
94
95
95
96
let blocks_to_add = 1 ;
96
97
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ pub mod send_with_proposal {
238
238
match crate :: utils:: conversion:: txid_from_hex_encoded_str (
239
239
serverz_txid_string. as_str ( ) ,
240
240
) {
241
- Ok ( reported_txid ) => {
241
+ Ok ( _reported_txid ) => {
242
242
// happens during darkside tests
243
243
// If this option is enabled, the LightClient will replace outgoing TxId records with the TxId picked by the server. necessary for darkside.
244
244
// #[cfg(feature = "darkside_tests")]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub trait ConductChain {
17
17
async fn setup ( ) -> Self ;
18
18
19
19
/// used to connect to server via grpc
20
- fn lightserver_uri ( ) -> Option < Uri > ;
20
+ fn lightserver_uri ( & self ) -> Option < http :: Uri > ;
21
21
22
22
/// builds a faucet (funded from mining)
23
23
async fn create_faucet ( & mut self ) -> LightClient ;
Original file line number Diff line number Diff line change @@ -66,4 +66,8 @@ impl ConductChain for LibtonodeEnvironment {
66
66
start_height + 1
67
67
) ;
68
68
}
69
+
70
+ fn lightserver_uri ( & self ) -> Option < http:: Uri > {
71
+ todo ! ( )
72
+ }
69
73
}
Original file line number Diff line number Diff line change @@ -25,4 +25,8 @@ impl ConductChain for LiveChain {
25
25
// average block time is 75 seconds. we do this twice here to insist on a new block
26
26
tokio:: time:: sleep ( std:: time:: Duration :: from_secs ( 150 ) ) . await ;
27
27
}
28
+
29
+ fn lightserver_uri ( & self ) -> Option < http:: Uri > {
30
+ todo ! ( )
31
+ }
28
32
}
Original file line number Diff line number Diff line change @@ -77,10 +77,12 @@ where
77
77
. expect ( "record is ok" ) ;
78
78
79
79
dbg ! (
80
- crate :: grpc_connector:: get_latest_block( sender. config. lightwalletd_uri. read( ) . unwrap( ) )
81
- . await
82
- . unwrap( )
83
- . height
80
+ crate :: grpc_connector:: get_latest_block(
81
+ sender. config. lightwalletd_uri. read( ) . unwrap( ) . to_owned( )
82
+ )
83
+ . await
84
+ . unwrap( )
85
+ . height
84
86
) ;
85
87
86
88
lookup_statuses ( sender, txids. clone ( ) ) . await . map ( |status| {
You can’t perform that action at this time.
0 commit comments