Introduce LegacyChannelConfig to remain backwards compatible
[rust-lightning] / lightning / src / ln / payment_tests.rs
index 07e531c5b4b7e330b252414a89207ea70e698bc2..6fcb18cf00bc925a5cb4318c838841ccf339baee 100644 (file)
@@ -531,7 +531,8 @@ fn do_retry_with_no_persist(confirm_before_reload: bool) {
        // Update the fee on the middle hop to ensure PaymentSent events have the correct (retried) fee
        // and not the original fee. We also update node[1]'s relevant config as
        // do_claim_payment_along_route expects us to never overpay.
-       nodes[1].node.channel_state.lock().unwrap().by_id.get_mut(&chan_id_2).unwrap().config.forwarding_fee_base_msat += 100_000;
+       nodes[1].node.channel_state.lock().unwrap().by_id.get_mut(&chan_id_2).unwrap()
+               .config.mutable.forwarding_fee_base_msat += 100_000;
        new_route.paths[0][0].fee_msat += 100_000;
 
        assert!(nodes[0].node.retry_payment(&new_route, payment_id_1).is_err()); // Shouldn't be allowed to retry a fulfilled payment