Make payment tests more realistic
authorjurvis <hello@jurvis.co>
Sun, 28 Aug 2022 06:07:50 +0000 (23:07 -0700)
committerjurvis <hello@jurvis.co>
Thu, 1 Sep 2022 01:50:03 +0000 (18:50 -0700)
commit80daf942b2be483d6470223be31df49e0056a6f9
treee49245e1458a3a4c6274ad418f5468da17569e65
parentc70bd1fd558513e72fa03dc16f9556882883046e
Make payment tests more realistic

Made sure that every hop has a unique receipient. When we simulate
calling `channel_penalty_msat` in `TestRouter`’s find route, use
actual previous node ids instead of just using the payer’s.
lightning-invoice/src/payment.rs