X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fevents.rs;h=76ec20209412a8ddc4865aa931c3265a5275f60e;hb=eff8af21103e43f763cb10ae6a75c1543a2d4068;hp=8f34605675c4ee2992a9f045bc8b49d19e9ffd81;hpb=236887da76ab4ed7457afde133116400a57e5db3;p=rust-lightning diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 8f346056..76ec2020 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -13,7 +13,7 @@ use util::ser::{Writeable, Writer, MaybeReadable, Readable}; use bitcoin::blockdata::script::Script; -use secp256k1::key::PublicKey; +use bitcoin::secp256k1::key::PublicKey; use std::time::Duration; @@ -51,10 +51,14 @@ pub enum Event { }, /// Indicates we've received money! Just gotta dig out that payment preimage and feed it to /// ChannelManager::claim_funds to get it.... - /// Note that if the preimage is not known or the amount paid is incorrect, you must call - /// ChannelManager::fail_htlc_backwards to free up resources for this HTLC. + /// Note that if the preimage is not known or the amount paid is incorrect, you should call + /// ChannelManager::fail_htlc_backwards to free up resources for this HTLC and avoid + /// network congestion. /// The amount paid should be considered 'incorrect' when it is less than or more than twice /// the amount expected. + /// If you fail to call either ChannelManager::claim_funds or + /// ChannelManager::fail_htlc_backwards within the HTLC's timeout, the HTLC will be + /// automatically failed. PaymentReceived { /// The hash for which the preimage should be handed to the ChannelManager. payment_hash: PaymentHash,