]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #447 from ariard/2020-01-fix-weight-computation
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Fri, 17 Jan 2020 22:32:29 +0000 (22:32 +0000)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2020 22:32:29 +0000 (22:32 +0000)
Bound incoming HTLC witnessScript to min/max limits

1  2 
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs

Simple merge
Simple merge
Simple merge
index 394e40da95c25390cf516011201acb373d5e5eea,c11f03348c0dab6dff3ff424b116db6448298a51..50af478a5cf1b768149e1e11f6e67453508eddc9
@@@ -8,12 -8,11 +8,12 @@@ use chain::keysinterface::{KeysInterfac
  use ln::channel::{COMMITMENT_TX_BASE_WEIGHT, COMMITMENT_TX_WEIGHT_PER_HTLC};
  use ln::channelmanager::{ChannelManager,ChannelManagerReadArgs,HTLCForwardInfo,RAACommitmentOrder, PaymentPreimage, PaymentHash, BREAKDOWN_TIMEOUT};
  use ln::channelmonitor::{ChannelMonitor, CLTV_CLAIM_BUFFER, LATENCY_GRACE_PERIOD_BLOCKS, ManyChannelMonitor, ANTI_REORG_DELAY};
- use ln::channel::{ACCEPTED_HTLC_SCRIPT_WEIGHT, OFFERED_HTLC_SCRIPT_WEIGHT, Channel, ChannelError};
+ use ln::channel::{Channel, ChannelError};
  use ln::onion_utils;
  use ln::router::{Route, RouteHop};
 +use ln::features::{ChannelFeatures, InitFeatures};
  use ln::msgs;
 -use ln::msgs::{ChannelMessageHandler,RoutingMessageHandler,HTLCFailChannelUpdate, LocalFeatures, ErrorAction};
 +use ln::msgs::{ChannelMessageHandler,RoutingMessageHandler,HTLCFailChannelUpdate, ErrorAction};
  use util::enforcing_trait_impls::EnforcingChannelKeys;
  use util::test_utils;
  use util::events::{Event, EventsProvider, MessageSendEvent, MessageSendEventsProvider};