projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
outbound_payment: set max path length in PaymentParameters.
[rust-lightning]
/
lightning
/
src
/
ln
/
payment_tests.rs
diff --git
a/lightning/src/ln/payment_tests.rs
b/lightning/src/ln/payment_tests.rs
index 0a9b0cb05a7cc28491d37d37735c39a68c4628e8..2fc21eb23853612aa4518c09cc81b49cf3098d45 100644
(file)
--- a/
lightning/src/ln/payment_tests.rs
+++ b/
lightning/src/ln/payment_tests.rs
@@
-1102,7
+1102,6
@@
fn do_test_dup_htlc_onchain_doesnt_fail_on_reload(persist_manager_post_event: bo
// Now connect the HTLC claim transaction with the ChainMonitor-generated ChannelMonitor update
// returning InProgress. This should cause the claim event to never make its way to the
// ChannelManager.
// Now connect the HTLC claim transaction with the ChainMonitor-generated ChannelMonitor update
// returning InProgress. This should cause the claim event to never make its way to the
// ChannelManager.
- chanmon_cfgs[0].persister.chain_sync_monitor_persistences.lock().unwrap().clear();
chanmon_cfgs[0].persister.set_update_ret(ChannelMonitorUpdateStatus::InProgress);
if payment_timeout {
chanmon_cfgs[0].persister.set_update_ret(ChannelMonitorUpdateStatus::InProgress);
if payment_timeout {
@@
-4229,7
+4228,7
@@
fn peel_payment_onion_custom_tlvs() {
let payment_hash = PaymentHash(Sha256::hash(&keysend_preimage.0).to_byte_array());
let (onion_routing_packet, first_hop_msat, cltv_expiry) = onion_utils::create_payment_onion(
let payment_hash = PaymentHash(Sha256::hash(&keysend_preimage.0).to_byte_array());
let (onion_routing_packet, first_hop_msat, cltv_expiry) = onion_utils::create_payment_onion(
- &secp_ctx, &route.paths[0], &session_priv, amt_msat,
recipient_onion.clone()
,
+ &secp_ctx, &route.paths[0], &session_priv, amt_msat,
&recipient_onion
,
nodes[0].best_block_info().1, &payment_hash, &Some(keysend_preimage), prng_seed
).unwrap();
nodes[0].best_block_info().1, &payment_hash, &Some(keysend_preimage), prng_seed
).unwrap();