You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new `update_channel_config` method is exposed on the `ChannelManger`
to update the ChannelConfig for a set of channels atomically. New
ChannelUpdate events are generated for each eligible channel.
Note that as currently implemented, a buggy and/or
auto-policy-management client could spam the network with updates as
there is no rate-limiting in place. This could already be done with
`broadcast_node_announcement`, though users are less inclined to update
that as frequently as its data is mostly static.
Copy file name to clipboardExpand all lines: lightning/src/ln/onion_route_tests.rs
+139-6
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@
11
11
//! These tests work by standing up full nodes and route payments across the network, checking the
12
12
//! returned errors decode to the correct thing.
13
13
14
-
use chain::channelmonitor::{CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS};
14
+
use chain::channelmonitor::{ChannelMonitor,CLTV_CLAIM_BUFFER,LATENCY_GRACE_PERIOD_BLOCKS};
15
15
use chain::keysinterface::{KeysInterface,Recipient};
16
16
use ln::{PaymentHash,PaymentSecret};
17
-
use ln::channelmanager::{HTLCForwardInfo,CLTV_FAR_FAR_AWAY,MIN_CLTV_EXPIRY_DELTA,PendingHTLCInfo,PendingHTLCRouting};
17
+
use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,HTLCForwardInfo,CLTV_FAR_FAR_AWAY,MIN_CLTV_EXPIRY_DELTA,PendingHTLCInfo,PendingHTLCRouting};
18
18
use ln::onion_utils;
19
19
use routing::gossip::{NetworkUpdate,RoutingFees,NodeId};
20
20
use routing::router::{get_route,PaymentParameters,Route,RouteHint,RouteHintHop};
@@ -23,9 +23,10 @@ use ln::msgs;
23
23
use ln::msgs::{ChannelMessageHandler,ChannelUpdate,OptionalField};
24
24
use ln::wire::Encode;
25
25
use util::events::{Event,MessageSendEvent,MessageSendEventsProvider};
26
-
use util::ser::{Writeable,Writer};
26
+
use util::ser::{ReadableArgs,Writeable,Writer};
27
27
use util::{byte_utils, test_utils};
28
-
use util::config::UserConfig;
28
+
use util::config::{UserConfig,ChannelConfig};
29
+
use util::errors::APIError;
29
30
30
31
use bitcoin::hash_types::BlockHash;
31
32
@@ -506,8 +507,6 @@ fn test_onion_failure() {
506
507
let preimage = send_along_route(&nodes[0], bogus_route,&[&nodes[1],&nodes[2]], amt_to_forward+1).0;
0 commit comments