File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 77#include <ccan/tal/str/str.h>
88#include <common/bolt11.h>
99#include <common/bolt12.h>
10+ #include <common/daemon.h>
1011#include <common/dijkstra.h>
1112#include <common/gossmap.h>
1213#include <common/gossmods_listpeerchannels.h>
@@ -1138,6 +1139,12 @@ static struct command_result *getroutes_for(struct command *aux_cmd,
11381139 const struct pubkey * dst ;
11391140 struct amount_msat maxfee ;
11401141
1142+ /* I would normally assert here, but we have reports of this happening... */
1143+ if (amount_msat_is_zero (deliver )) {
1144+ payment_log (payment , LOG_BROKEN , "getroutes for 0msat!" );
1145+ send_backtrace ("getroutes for 0msat!" );
1146+ }
1147+
11411148 /* If we get injectpaymentonion responses, they can wait */
11421149 payment -> amount_being_routed = deliver ;
11431150
You can’t perform that action at this time.
0 commit comments