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>
@@ -1136,6 +1137,12 @@ static struct command_result *getroutes_for(struct command *aux_cmd,
11361137 const struct pubkey * dst ;
11371138 struct amount_msat maxfee ;
11381139
1140+ /* I would normally assert here, but we have reports of this happening... */
1141+ if (amount_msat_is_zero (deliver )) {
1142+ payment_log (payment , LOG_BROKEN , "getroutes for 0msat!" );
1143+ send_backtrace ("getroutes for 0msat!" );
1144+ }
1145+
11391146 /* If we get injectpaymentonion responses, they can wait */
11401147 payment -> amount_being_routed = deliver ;
11411148
You can’t perform that action at this time.
0 commit comments