From: Matt Corallo Date: Tue, 7 Apr 2020 17:36:58 +0000 (-0400) Subject: Pass Route to send_payment as a reference, not move X-Git-Tag: v0.0.12~86^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=59b1bf6d0f718b2bef7ff44b5d2fc5bddce27b3b;hp=59b1bf6d0f718b2bef7ff44b5d2fc5bddce27b3b;p=rust-lightning Pass Route to send_payment as a reference, not move ChannelManager::send_payment stopped utilizing its ownership of the Route with MPP (which, for readability, now clone()s the individual paths when creating HTLCSource::OutboundRoute objects). While this isn't ideal, it likely also makes sense to ensure that the user has access to the Route after sending to correlate individual path failures with the paths in the route or, in the future, retry individual paths. Thus, the easiest solution is to just take the Route by reference, allowing the user to retain ownership. ---