File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -880,25 +880,11 @@ REGISTER_PAYMENT_MODIFIER(collect_results, collect_results_cb);
880880 *
881881 * The default ending of a payment.
882882 */
883- static struct command_result * end_done (struct command * cmd UNUSED ,
884- const char * method UNUSED ,
885- const char * buf UNUSED ,
886- const jsmntok_t * result UNUSED ,
887- struct payment * payment )
883+ static struct command_result * end_cb (struct payment * payment )
888884{
889885 return payment_fail (payment , PAY_STOPPED_RETRYING ,
890886 "Payment execution ended without success." );
891887}
892- static struct command_result * end_cb (struct payment * payment )
893- {
894- struct command * cmd = payment_command (payment );
895- assert (cmd );
896- struct out_req * req =
897- jsonrpc_request_start (cmd , "waitblockheight" , end_done ,
898- payment_rpc_failure , payment );
899- json_add_num (req -> js , "blockheight" , 0 );
900- return send_outreq (req );
901- }
902888
903889REGISTER_PAYMENT_MODIFIER (end , end_cb );
904890
You can’t perform that action at this time.
0 commit comments