projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3021 from TheBlueMatt/2024-04-drop-blocked-completed-updates
[rust-lightning]
/
lightning
/
src
/
chain
/
transaction.rs
diff --git
a/lightning/src/chain/transaction.rs
b/lightning/src/chain/transaction.rs
index 17815207a8dcf92355dc762cdfd0e66afc0c33f5..7a447dd5d9083bc959b9bacca4289715b116ad71 100644
(file)
--- a/
lightning/src/chain/transaction.rs
+++ b/
lightning/src/chain/transaction.rs
@@
-58,7
+58,7
@@
pub struct OutPoint {
impl OutPoint {
/// Converts this OutPoint into the OutPoint field as used by rust-bitcoin
///
impl OutPoint {
/// Converts this OutPoint into the OutPoint field as used by rust-bitcoin
///
- /// This is not exported to bindings users as the same type is used universally in the C bindings
+ /// This is not exported to bindings users as the same type is used universally in the C bindings
/// for all outpoints
pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint {
BitcoinOutPoint {
/// for all outpoints
pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint {
BitcoinOutPoint {
@@
-76,6
+76,15
@@
impl core::fmt::Display for OutPoint {
impl_writeable!(OutPoint, { txid, index });
impl_writeable!(OutPoint, { txid, index });
+#[derive(Debug, Clone)]
+pub(crate) struct MaybeSignedTransaction(pub Transaction);
+
+impl MaybeSignedTransaction {
+ pub fn is_fully_signed(&self) -> bool {
+ !self.0.input.iter().any(|input| input.witness.is_empty())
+ }
+}
+
#[cfg(test)]
mod tests {
use crate::chain::transaction::OutPoint;
#[cfg(test)]
mod tests {
use crate::chain::transaction::OutPoint;