@@ -39,7 +39,7 @@ fn start_bitcoind(with_v2_transport: bool) -> anyhow::Result<(corepc_node::Node,
3939 Ok ( ( bitcoind, socket_addr) )
4040}
4141
42- async fn new_node ( addrs : HashSet < ScriptBuf > , socket_addr : SocketAddrV4 ) -> ( Node < ( ) , ( ) > , Client ) {
42+ fn new_node ( addrs : HashSet < ScriptBuf > , socket_addr : SocketAddrV4 ) -> ( Node < ( ) , ( ) > , Client ) {
4343 let host = ( IpAddr :: V4 ( * socket_addr. ip ( ) ) , Some ( socket_addr. port ( ) ) ) ;
4444 let builder = kyoto:: core:: builder:: NodeBuilder :: new ( bitcoin:: Network :: Regtest ) ;
4545 let ( node, client) = builder
@@ -49,7 +49,7 @@ async fn new_node(addrs: HashSet<ScriptBuf>, socket_addr: SocketAddrV4) -> (Node
4949 ( node, client)
5050}
5151
52- async fn new_node_sql (
52+ fn new_node_sql (
5353 addrs : HashSet < ScriptBuf > ,
5454 socket_addr : SocketAddrV4 ,
5555 tempdir_path : PathBuf ,
@@ -67,7 +67,7 @@ async fn new_node_sql(
6767 ( node, client)
6868}
6969
70- async fn new_node_anchor_sql (
70+ fn new_node_anchor_sql (
7171 addrs : HashSet < ScriptBuf > ,
7272 checkpoint : HeaderCheckpoint ,
7373 socket_addr : SocketAddrV4 ,
@@ -152,7 +152,7 @@ async fn test_reorg() {
152152 let mut scripts = HashSet :: new ( ) ;
153153 let other = rpc. new_address ( ) . unwrap ( ) ;
154154 scripts. insert ( other. into ( ) ) ;
155- let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) . await ;
155+ let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) ;
156156 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
157157 let Client {
158158 requester,
@@ -205,7 +205,7 @@ async fn test_mine_after_reorg() {
205205 let mut scripts = HashSet :: new ( ) ;
206206 let other = rpc. new_address ( ) . unwrap ( ) ;
207207 scripts. insert ( other. into ( ) ) ;
208- let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) . await ;
208+ let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) ;
209209 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
210210 let Client {
211211 requester,
@@ -261,7 +261,7 @@ async fn test_various_client_methods() {
261261 let mut scripts = HashSet :: new ( ) ;
262262 let other = rpc. new_address ( ) . unwrap ( ) ;
263263 scripts. insert ( other. into ( ) ) ;
264- let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) . await ;
264+ let ( node, client) = new_node ( scripts. clone ( ) , socket_addr) ;
265265 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
266266 let Client {
267267 requester,
@@ -299,7 +299,7 @@ async fn test_sql_reorg() {
299299 let mut scripts = HashSet :: new ( ) ;
300300 let other = rpc. new_address ( ) . unwrap ( ) ;
301301 scripts. insert ( other. into ( ) ) ;
302- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) . await ;
302+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) ;
303303 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
304304 let Client {
305305 requester,
@@ -318,7 +318,7 @@ async fn test_sql_reorg() {
318318 mine_blocks ( rpc, & miner, 2 , 1 ) . await ;
319319 let best = best_hash ( rpc) ;
320320 // Spin up the node on a cold start
321- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) . await ;
321+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) ;
322322 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
323323 let Client {
324324 requester,
@@ -347,7 +347,7 @@ async fn test_sql_reorg() {
347347 mine_blocks ( rpc, & miner, 2 , 1 ) . await ;
348348 let best = best_hash ( rpc) ;
349349 // Make sure the node does not have any corrupted headers
350- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir) . await ;
350+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir) ;
351351 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
352352 let Client {
353353 requester,
@@ -379,7 +379,7 @@ async fn test_two_deep_reorg() {
379379 let mut scripts = HashSet :: new ( ) ;
380380 let other = rpc. new_address ( ) . unwrap ( ) ;
381381 scripts. insert ( other. into ( ) ) ;
382- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) . await ;
382+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) ;
383383 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
384384 let Client {
385385 requester,
@@ -398,7 +398,7 @@ async fn test_two_deep_reorg() {
398398 mine_blocks ( rpc, & miner, 3 , 1 ) . await ;
399399 let best = best_hash ( rpc) ;
400400 // Make sure the reorganization is caught after a cold start
401- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) . await ;
401+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) ;
402402 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
403403 let Client {
404404 requester,
@@ -426,7 +426,7 @@ async fn test_two_deep_reorg() {
426426 mine_blocks ( rpc, & miner, 2 , 1 ) . await ;
427427 let best = best_hash ( rpc) ;
428428 // Make sure the node does not have any corrupted headers
429- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir) . await ;
429+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir) ;
430430 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
431431 let Client {
432432 requester,
@@ -457,7 +457,7 @@ async fn test_sql_stale_anchor() {
457457 let mut scripts = HashSet :: new ( ) ;
458458 let other = rpc. new_address ( ) . unwrap ( ) ;
459459 scripts. insert ( other. into ( ) ) ;
460- let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) . await ;
460+ let ( node, client) = new_node_sql ( scripts. clone ( ) , socket_addr, tempdir. clone ( ) ) ;
461461 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
462462 let Client {
463463 requester,
@@ -479,8 +479,7 @@ async fn test_sql_stale_anchor() {
479479 HeaderCheckpoint :: new ( old_height as u32 , old_best) ,
480480 socket_addr,
481481 tempdir. clone ( ) ,
482- )
483- . await ;
482+ ) ;
484483 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
485484 let Client {
486485 requester,
@@ -515,8 +514,7 @@ async fn test_sql_stale_anchor() {
515514 HeaderCheckpoint :: new ( old_height as u32 , cp) ,
516515 socket_addr,
517516 tempdir. clone ( ) ,
518- )
519- . await ;
517+ ) ;
520518 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
521519 let Client {
522520 requester,
@@ -538,8 +536,7 @@ async fn test_sql_stale_anchor() {
538536 HeaderCheckpoint :: new ( old_height as u32 , cp) ,
539537 socket_addr,
540538 tempdir,
541- )
542- . await ;
539+ ) ;
543540 tokio:: task:: spawn ( async move { node. run ( ) . await } ) ;
544541 let Client {
545542 requester,
0 commit comments