File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " lightning"
3
- version = " 0.0.1 "
3
+ version = " 0.0.2 "
4
4
authors = [" Matt Corallo" ]
5
5
license = " Apache-2.0"
6
6
repository = " https://github.com/TheBlueMatt/rust-lightning/"
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ pub struct PendingForwardHTLCInfo {
41
41
amt_to_forward : u64 ,
42
42
outgoing_cltv_value : u32 ,
43
43
}
44
- //TODO: This is public, and needed to call Channel::update_add_htlc, so there needs to be a way to
45
- //initialize it usefully...probably make it optional in Channel instead).
44
+
45
+ # [ cfg ( feature = "fuzztarget" ) ]
46
46
impl PendingForwardHTLCInfo {
47
47
pub fn dummy ( ) -> Self {
48
48
Self {
@@ -635,7 +635,7 @@ impl ChannelManager {
635
635
let mut channel_state_lock = self . channel_state . lock ( ) . unwrap ( ) ;
636
636
let channel_state = channel_state_lock. borrow_parts ( ) ;
637
637
638
- if Instant :: now ( ) < * channel_state. next_forward {
638
+ if cfg ! ( not ( feature = "fuzztarget" ) ) && Instant :: now ( ) < * channel_state. next_forward {
639
639
return ;
640
640
}
641
641
Original file line number Diff line number Diff line change 1
1
pub mod channelmanager;
2
- pub mod channel;
3
2
pub mod channelmonitor;
4
3
pub mod msgs;
5
4
pub mod router;
6
5
pub mod peer_channel_encryptor;
7
6
pub mod peer_handler;
8
7
8
+ #[ cfg( feature = "fuzztarget" ) ]
9
+ pub mod channel;
10
+ #[ cfg( not( feature = "fuzztarget" ) ) ]
11
+ pub ( crate ) mod channel;
12
+
9
13
mod chan_utils;
You can’t perform that action at this time.
0 commit comments