From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Fri, 17 Jan 2020 22:32:29 +0000 (+0000) Subject: Merge pull request #447 from ariard/2020-01-fix-weight-computation X-Git-Tag: v0.0.12~155 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0b5b2828f980b615187fae05a950cc41e4fb186b;p=rust-lightning Merge pull request #447 from ariard/2020-01-fix-weight-computation Bound incoming HTLC witnessScript to min/max limits --- 0b5b2828f980b615187fae05a950cc41e4fb186b diff --cc lightning/src/ln/functional_tests.rs index 394e40da9,c11f03348..50af478a5 --- a/lightning/src/ln/functional_tests.rs +++ b/lightning/src/ln/functional_tests.rs @@@ -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};