]> git.bitcoin.ninja Git - rust-lightning/blobdiff - lightning/src/chain/channelmonitor.rs
Expose payment metadata in the sending path via `send_payment`.
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index 8786f47db0d91b101483cd4d7136f69aed615342..746fac6510c95b305281b1547f87b919627fd400 100644 (file)
@@ -3378,7 +3378,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).
                let (route, payment_hash, _, payment_secret) = get_route_and_payment_hash!(nodes[1], nodes[0], 100_000);
-               unwrap_send_err!(nodes[1].node.send_payment(&route, payment_hash, &Some(payment_secret)),
+               unwrap_send_err!(nodes[1].node.send_payment(&route, payment_hash, &Some(payment_secret), None),
                        true, APIError::ChannelUnavailable { ref err },
                        assert!(err.contains("ChannelMonitor storage failure")));
                check_added_monitors!(nodes[1], 2); // After the failure we generate a close-channel monitor update