You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lightning/src/chain/keysinterface.rs
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ use util::{byte_utils, transaction_utils};
34
34
use util::ser::{Writeable,Writer,Readable};
35
35
36
36
use chain::transaction::OutPoint;
37
-
use ln::chan_utils;
37
+
use ln::{chan_utils,PaymentPreimage};
38
38
use ln::chan_utils::{HTLCOutputInCommitment, make_funding_redeemscript,ChannelPublicKeys,HolderCommitmentTransaction,ChannelTransactionParameters,CommitmentTransaction,ClosingTransaction};
39
39
use ln::msgs::UnsignedChannelAnnouncement;
40
40
use ln::script::ShutdownScript;
@@ -226,7 +226,14 @@ pub trait BaseSign {
226
226
/// secret won't leave us without a broadcastable holder transaction.
227
227
/// Policy checks should be implemented in this function, including checking the amount
Copy file name to clipboardExpand all lines: lightning/src/ln/channel.rs
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -330,6 +330,7 @@ struct CommitmentStats<'a> {
330
330
htlcs_included:Vec<(HTLCOutputInCommitment,Option<&'aHTLCSource>)>,// the list of HTLCs (dust HTLCs *included*) which were not ignored when building the transaction
331
331
local_balance_msat:u64,// local balance before fees but considering dust limits
332
332
remote_balance_msat:u64,// remote balance before fees but considering dust limits
333
+
preimages:Vec<PaymentPreimage>,// preimages for successful offered HTLCs since last commitment
333
334
}
334
335
335
336
/// Used when calculating whether we or the remote can afford an additional HTLC.
let counterparty_keys = self.build_remote_transaction_keys()?;
4531
4546
let counterparty_initial_commitment_tx = self.build_commitment_transaction(self.cur_counterparty_commitment_transaction_number,&counterparty_keys,false,false, logger).tx;
Copy file name to clipboardExpand all lines: lightning/src/util/enforcing_trait_impls.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
// licenses.
9
9
10
10
use ln::chan_utils::{HTLCOutputInCommitment,ChannelPublicKeys,HolderCommitmentTransaction,CommitmentTransaction,ChannelTransactionParameters,TrustedCommitmentTransaction,ClosingTransaction};
11
-
use ln::{chan_utils, msgs};
11
+
use ln::{chan_utils, msgs,PaymentPreimage};
12
12
use chain::keysinterface::{Sign,InMemorySigner,BaseSign};
13
13
14
14
use prelude::*;
@@ -102,7 +102,7 @@ impl BaseSign for EnforcingSigner {
assert!(idx == state.last_holder_commitment || idx == state.last_holder_commitment - 1,"expecting to validate the current or next holder commitment - trying {}, current {}", idx, state.last_holder_commitment);
@@ -113,7 +113,7 @@ impl BaseSign for EnforcingSigner {
0 commit comments