Expose payment metadata in the sending path via `send_payment`.
[rust-lightning] / lightning / src / chain / chainmonitor.rs
index 05f8832917603095cfc72693a2f4bd1034bf0092..d8456a55bbb78566cec67930486d05a181ffb6db 100644 (file)
@@ -901,7 +901,7 @@ mod tests {
                // If the ChannelManager tries to update the channel, however, the ChainMonitor will pass
                // the update through to the ChannelMonitor which will refuse it (as the channel is closed).
                chanmon_cfgs[0].persister.set_update_ret(Ok(()));
-               unwrap_send_err!(nodes[0].node.send_payment(&route, second_payment_hash, &Some(second_payment_secret)),
+               unwrap_send_err!(nodes[0].node.send_payment(&route, second_payment_hash, &Some(second_payment_secret), None),
                        true, APIError::ChannelUnavailable { ref err },
                        assert!(err.contains("ChannelMonitor storage failure")));
                check_added_monitors!(nodes[0], 2); // After the failure we generate a close-channel monitor update