projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure ChannelManager methods are idempotent
[rust-lightning]
/
lightning
/
src
/
chain
/
transaction.rs
diff --git
a/lightning/src/chain/transaction.rs
b/lightning/src/chain/transaction.rs
index 4db5fbed6a8b9ed50f476f93c5a9581243857e33..0219ebbe8cad9631e1f2fef8c7b05600828e9f24 100644
(file)
--- a/
lightning/src/chain/transaction.rs
+++ b/
lightning/src/chain/transaction.rs
@@
-73,17
+73,9
@@
impl OutPoint {
vout: self.index as u32,
}
}
vout: self.index as u32,
}
}
-
- /// Creates a dummy BitcoinOutPoint, useful for deserializing into.
- pub(crate) fn null() -> Self {
- Self {
- txid: Default::default(),
- index: 0
- }
- }
}
}
-impl_writeable!(OutPoint,
0,
{ txid, index });
+impl_writeable!(OutPoint, { txid, index });
#[cfg(test)]
mod tests {
#[cfg(test)]
mod tests {