@@ -115,6 +115,7 @@ fn btc<F: Into<f64>>(btc: F) -> Amount {
115115}
116116
117117/// Quickly create a signed BTC amount.
118+ #[ allow( dead_code) ]
118119fn sbtc < F : Into < f64 > > ( btc : F ) -> SignedAmount {
119120 SignedAmount :: from_btc ( btc. into ( ) ) . unwrap ( )
120121}
@@ -422,6 +423,7 @@ fn test_dump_private_key(cl: &Client) {
422423 assert_eq ! ( addr. to_string( ) , Address :: p2pkh( & sk. public_key( & SECP ) , * NET ) . to_string( ) ) ;
423424}
424425
426+ #[ allow( dead_code) ]
425427fn test_get_balance_generate_to_address ( cl : & Client ) {
426428 let initial = cl. get_balance ( None , None ) . unwrap ( ) ;
427429
@@ -464,6 +466,7 @@ fn test_get_block_hash(cl: &Client) {
464466 assert_eq ! ( cl. get_block_hash( h) . unwrap( ) , cl. get_best_block_hash( ) . unwrap( ) ) ;
465467}
466468
469+ #[ allow( dead_code) ]
467470fn test_get_block ( cl : & Client ) {
468471 let tip = cl. get_best_block_hash ( ) . unwrap ( ) ;
469472 let block = cl. get_block ( & tip) . unwrap ( ) ;
@@ -515,7 +518,7 @@ fn test_get_address_info(cl: &Client) {
515518fn test_set_label ( cl : & Client ) {
516519 let addr = cl. get_new_address ( Some ( "label" ) ) . unwrap ( ) . require_network ( * NET ) . unwrap ( ) ;
517520 let info = cl. get_address_info ( & addr) . unwrap ( ) ;
518- if wallet_node_version ( ) >= 0_20_00_00 {
521+ if wallet_node_version ( ) >= 20_00_00 {
519522 assert ! ( info. label. is_none( ) ) ;
520523 assert_eq ! ( info. labels[ 0 ] , json:: GetAddressInfoResultLabel :: Simple ( "label" . into( ) ) ) ;
521524 } else {
@@ -531,7 +534,7 @@ fn test_set_label(cl: &Client) {
531534
532535 cl. set_label ( & addr, "other" ) . unwrap ( ) ;
533536 let info = cl. get_address_info ( & addr) . unwrap ( ) ;
534- if wallet_node_version ( ) >= 0_20_00_00 {
537+ if wallet_node_version ( ) >= 20_00_00 {
535538 assert ! ( info. label. is_none( ) ) ;
536539 assert_eq ! ( info. labels[ 0 ] , json:: GetAddressInfoResultLabel :: Simple ( "other" . into( ) ) ) ;
537540 } else {
@@ -677,6 +680,7 @@ fn test_get_tx_out(cl: &Client) {
677680 let _ = cl. get_tx_out ( & txid, 0 , None ) . unwrap ( ) ;
678681}
679682
683+ #[ allow( dead_code) ]
680684fn test_get_tx_out_proof ( cl : & Client ) {
681685 let txid1 = cl
682686 . send_to_address ( & RANDOM_ADDRESS , btc ( 1 ) , None , None , None , None , None , None , None , None )
@@ -713,6 +717,7 @@ fn test_lock_unspent_unlock_unspent(cl: &Client) {
713717 assert ! ( cl. unlock_unspent_all( ) . unwrap( ) ) ;
714718}
715719
720+ #[ allow( dead_code) ]
716721fn test_get_block_filter ( cl : & Client ) {
717722 let addr = & cl. get_new_address ( None ) . unwrap ( ) . require_network ( * NET ) . unwrap ( ) ;
718723 let blocks = cl. generate_to_address ( 7 , addr) . unwrap ( ) ;
@@ -1340,6 +1345,7 @@ fn test_getblocktemplate(cl: &Client) {
13401345 cl. generate_to_address ( 2 , & RANDOM_ADDRESS ) . unwrap ( ) ;
13411346}
13421347
1348+ #[ allow( dead_code) ]
13431349fn test_stop ( cl : & Client ) {
13441350 println ! ( "Stopping: '{}'" , cl. stop( ) . unwrap( ) ) ;
13451351}
@@ -1357,6 +1363,7 @@ fn test_get_masternode_list(cl: &Client) {
13571363 let _masternode_list = cl. get_masternode_list ( Some ( "json" ) , None ) . unwrap ( ) ;
13581364}
13591365
1366+ #[ allow( dead_code) ]
13601367fn test_get_masternode_outputs ( cl : & Client ) {
13611368 let _masternode_outputs = cl. get_masternode_outputs ( ) . unwrap ( ) ;
13621369}
@@ -1425,6 +1432,7 @@ fn test_get_quorum_sign(cl: &Client, _wallet_client: &Client) {
14251432 . unwrap ( ) ;
14261433}
14271434
1435+ #[ allow( dead_code) ]
14281436fn test_get_quorum_getrecsig ( cl : & Client ) {
14291437 let list = cl. get_quorum_list ( Some ( 1 ) ) . unwrap ( ) ;
14301438 let quorum_type = list. quorums_by_type . keys ( ) . next ( ) . unwrap ( ) . to_owned ( ) ;
@@ -1458,6 +1466,7 @@ fn test_get_quorum_isconflicting(cl: &Client) {
14581466 . unwrap ( ) ;
14591467}
14601468
1469+ #[ allow( dead_code) ]
14611470fn test_get_quorum_memberof ( cl : & Client ) {
14621471 let pro_tx_hash =
14631472 ProTxHash :: from_str ( "39c07d2c9c6d0ead56f52726b63c15e295cb5c3ecf7fe1fefcfb23b2e3cfed1f" )
@@ -1466,6 +1475,7 @@ fn test_get_quorum_memberof(cl: &Client) {
14661475 assert ! ( quorum_memberof. 0 [ 0 ] . height > 0 ) ;
14671476}
14681477
1478+ #[ allow( dead_code) ]
14691479fn test_get_quorum_rotationinfo ( cl : & Client ) {
14701480 let block_hash =
14711481 BlockHash :: from_str ( "0000012197b7ca6360af3756c6a49c217dbbdf8b595fd55e0fcef7ffcd546044" )
@@ -1482,6 +1492,7 @@ fn test_get_quorum_selectquorum(cl: &Client) {
14821492 . unwrap ( ) ;
14831493}
14841494
1495+ #[ allow( dead_code) ]
14851496fn test_get_quorum_verify ( cl : & Client ) {
14861497 let _quorum_verify = cl. get_quorum_verify (
14871498 LlmqTest ,
@@ -1513,6 +1524,7 @@ fn test_get_protx_diff(cl: &Client) {
15131524 let _protx_diff = cl. get_protx_diff ( 1000 , 1000 ) . unwrap ( ) ;
15141525}
15151526
1527+ #[ allow( dead_code) ]
15161528fn test_get_protx_info ( cl : & Client ) {
15171529 let pro_tx_hash =
15181530 ProTxHash :: from_str ( "000000000c9eddd5d2a707281b7e30d5aac974dac600ff10f01937e1ca36066f" )
@@ -1538,6 +1550,7 @@ fn test_get_protx_list(cl: &Client) {
15381550 cl. get_protx_list ( Some ( ProTxListType :: Valid ) , Some ( true ) , Some ( 1000 ) ) . unwrap ( ) ;
15391551}
15401552
1553+ #[ allow( dead_code) ]
15411554fn test_get_protx_register ( cl : & Client ) {
15421555 let _protx_register = cl. get_protx_register (
15431556 "8b2eab3413abb6e04d17d1defe2b71039ba6b6f72ea1e5dab29bb10e7b745948" ,
@@ -1553,11 +1566,13 @@ fn test_get_protx_register(cl: &Client) {
15531566 ) . unwrap ( ) ;
15541567}
15551568
1569+ #[ allow( dead_code) ]
15561570fn test_get_protx_register_fund ( cl : & Client ) {
15571571 let _protx_register_fund = cl. get_protx_register_fund ( "yakx4mMRptKhgfjedNzX5FGQq7kSSBF2e7" , "3.4.5.6:3456" , "yURczr3qY31xkQZfFu8eZvKz19eAEPQxsd" , "0e02146e9c34cfbcb3f3037574a1abb35525e2ca0c3c6901dbf82ac591e30218d1711223b7ca956edf39f3d984d06d51" , "yURczr3qY31xkQZfFu8eZvKz19eAEPQxsd" ,
15581572 5.0 , "yUYTxqjpCfAAK4vgxXtBPywRBtZqsxN7Vy" , Some ( "yRMFHxcJ2aS2vfo5whhE2Gg73dfQVm8LAF" ) , Some ( false ) ) . unwrap ( ) ;
15591573}
15601574
1575+ #[ allow( dead_code) ]
15611576fn test_get_protx_register_prepare ( cl : & Client ) {
15621577 let owner_address = Address :: < NetworkUnchecked > :: from_str ( "yemjhGQ99V5ayJMjoyGGPtxteahii6G1Jz" )
15631578 . unwrap ( )
@@ -1589,13 +1604,15 @@ fn test_get_protx_register_prepare(cl: &Client) {
15891604 ) . unwrap ( ) ;
15901605}
15911606
1607+ #[ allow( dead_code) ]
15921608fn test_get_protx_register_submit ( cl : & Client ) {
15931609 let _protx_register_submit = cl. get_protx_register_submit (
15941610 "03000100012d988526d5d1efd32320023c92eff09c2963dcb021b0de9761" ,
15951611 "H90IvqVtFjZkwLJb08yMEgGixs0/FpcdvwImBcir4cYLJhD3pdX+lKD2GsPl6KNxghVXNk5/HpOdBoWAHo9u++Y=" ,
15961612 ) . unwrap ( ) ;
15971613}
15981614
1615+ #[ allow( dead_code) ]
15991616fn test_get_protx_revoke ( cl : & Client ) {
16001617 let _protx_revoke = cl
16011618 . get_protx_revoke (
@@ -1607,6 +1624,7 @@ fn test_get_protx_revoke(cl: &Client) {
16071624 . unwrap ( ) ;
16081625}
16091626
1627+ #[ allow( dead_code) ]
16101628fn test_get_protx_update_registrar ( cl : & Client ) {
16111629 let voting_address =
16121630 Address :: < NetworkUnchecked > :: from_str ( "yX2cDS4kcJ4LK4uq9Hd4TG7kURV3sGLZrw" )
@@ -1623,6 +1641,7 @@ fn test_get_protx_update_registrar(cl: &Client) {
16231641 ) . unwrap ( ) ;
16241642}
16251643
1644+ #[ allow( dead_code) ]
16261645fn test_get_protx_update_service ( cl : & Client ) {
16271646 let _protx_update_service = cl
16281647 . get_protx_update_service (
@@ -1635,6 +1654,7 @@ fn test_get_protx_update_service(cl: &Client) {
16351654 . unwrap ( ) ;
16361655}
16371656
1657+ #[ allow( dead_code) ]
16381658fn test_get_verifychainlock ( cl : & Client ) {
16391659 let _verifychainlock = cl. get_verifychainlock ( "00000036d5c520be6e9a32d3829efc983a7b5e88052bf138f80a2b3988689a24" , "97ec34efd1615b84af62495e54024880752f57790cf450ae974b80002440963592d96826e24f109e6c149411b70bb9a0035443752368590adae60365cf4251464e0423c1263e9c56a33eae9be9e9c79a117151b2173bcee93497008cace8d793" , None ) . unwrap ( ) ;
16401660}
@@ -1645,6 +1665,7 @@ fn test_get_asset_unlock_statuses(cl: &Client) {
16451665 let _statuses = cl. get_asset_unlock_statuses ( & indices, height) ;
16461666}
16471667
1668+ #[ allow( dead_code) ]
16481669fn test_get_verifyislock ( cl : & Client ) {
16491670 let _verifychainlock = cl. get_verifyislock ( "d0b1a9c70fdfff6bf7f6cbe3d1fe33a4ca44ceb17059b6381a4ac25d9c9b6495" , "8b5174d0e95b5642ebec23c3fe8f0bbf8f6993502f4210322871bba0e818ff3b" , "97ec34efd1615b84af62495e54024880752f57790cf450ae974b80002440963592d96826e24f109e6c149411b70bb9a0035443752368590adae60365cf4251464e0423c1263e9c56a33eae9be9e9c79a117151b2173bcee93497008cace8d793" , None ) . unwrap ( ) ;
16501671}
0 commit comments