@ -6,6 +6,7 @@
* { ' channels ' : [ { ' active ' : True , ' short_id ' : ' 6990 x2x1 / 1 ' , ' fee_per_kw ' : 10 , ' delay ' : 5 , ' message_flags ' : 0 , ' channel_flags ' : 1 , ' destination ' : ' 0230 ad0e74ea03976b28fda587bb75bdd357a1938af4424156a18265167f5e40ae ' , ' source ' : ' 02 ea622d5c8d6143f15ed3ce1d501dd0d3d09d3b1c83a44d0034949f8a9ab60f06 ' , ' last_update ' : 1504064344 } , { ' active ' : True , ' short_id ' : ' 6989 x2x1 / 0 ' , ' fee_per_kw ' : 10 , ' delay ' : 5 , ' message_flags ' : 0 , ' channel_flags ' : 0 , ' destination ' : ' 03 c173897878996287a8100469f954dd820fcd8941daed91c327f168f3329be0bf ' , ' source ' : ' 0230 ad0e74ea03976b28fda587bb75bdd357a1938af4424156a18265167f5e40ae ' , ' last_update ' : 1504064344 } , { ' active ' : True , ' short_id ' : ' 6990 x2x1 / 0 ' , ' fee_per_kw ' : 10 , ' delay ' : 5 , ' message_flags ' : 0 , ' channel_flags ' : 0 , ' destination ' : ' 02 ea622d5c8d6143f15ed3ce1d501dd0d3d09d3b1c83a44d0034949f8a9ab60f06 ' , ' source ' : ' 0230 ad0e74ea03976b28fda587bb75bdd357a1938af4424156a18265167f5e40ae ' , ' last_update ' : 1504064344 } , { ' active ' : True , ' short_id ' : ' 6989 x2x1 / 1 ' , ' fee_per_kw ' : 10 , ' delay ' : 5 , ' message_flags ' : 0 , ' channel_flags ' : 1 , ' destination ' : ' 0230 ad0e74ea03976b28fda587bb75bdd357a1938af4424156a18265167f5e40ae ' , ' source ' : ' 03 c173897878996287a8100469f954dd820fcd8941daed91c327f168f3329be0bf ' , ' last_update ' : 1504064344 } ] }
*/
# include <common/json_stream.h>
# include <common/setup.h>
# include <common/status.h>
# include <stdio.h>
@ -166,10 +167,8 @@ static bool channel_is_between(const struct chan *chan,
return false ;
}
int main ( void )
int main ( int argc , char * argv [ ] )
{
setup_locale ( ) ;
struct half_chan * nc ;
struct routing_state * rstate ;
struct node_id a , b , c , d ;
@ -177,9 +176,7 @@ int main(void)
struct chan * * route ;
const double riskfactor = 1.0 / BLOCKS_PER_YEAR / 10000 ;
secp256k1_ctx = secp256k1_context_create ( SECP256K1_CONTEXT_VERIFY
| SECP256K1_CONTEXT_SIGN ) ;
setup_tmpctx ( ) ;
common_setup ( argv [ 0 ] ) ;
node_id_from_hexstr ( " 03c173897878996287a8100469f954dd820fcd8941daed91c327f168f3329be0bf " ,
strlen ( " 03c173897878996287a8100469f954dd820fcd8941daed91c327f168f3329be0bf " ) ,
@ -281,7 +278,6 @@ int main(void)
ROUTING_MAX_HOPS , & fee ) ;
assert ( ! route ) ;
tal_free ( tmpctx ) ;
secp256k1_context_destroy ( secp256k1_ctx ) ;
common_shutdown ( ) ;
return 0 ;
}