We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab56b81 commit 02b92f5Copy full SHA for 02b92f5
src/ln/channelmanager.rs
@@ -42,6 +42,20 @@ pub struct PendingForwardHTLCInfo {
42
amt_to_forward: u64,
43
outgoing_cltv_value: u32,
44
}
45
+//TODO: This is public, and needed to call Channel::update_add_htlc, so there needs to be a way to
46
+//initialize it usefully...probably make it optional in Channel instead).
47
+impl PendingForwardHTLCInfo {
48
+ pub fn dummy() -> Self {
49
+ Self {
50
+ onion_packet: None,
51
+ payment_hash: [0; 32],
52
+ short_channel_id: 0,
53
+ prev_short_channel_id: 0,
54
+ amt_to_forward: 0,
55
+ outgoing_cltv_value: 0,
56
+ }
57
58
+}
59
60
enum PendingOutboundHTLC {
61
IntermediaryHopData {
0 commit comments