projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the `OutPoint` type for the `ChannelMonitor`'s funding_txo field.
[rust-lightning]
/
src
/
util
/
events.rs
diff --git
a/src/util/events.rs
b/src/util/events.rs
index db4769067e35ba95b5c0a1d5038c9de3b7d60378..1608d087370bd5fce0a6420a16ba5400a88d95cd 100644
(file)
--- a/
src/util/events.rs
+++ b/
src/util/events.rs
@@
-1,8
+1,8
@@
use ln::msgs;
use ln::msgs;
+use chain::transaction::OutPoint;
use bitcoin::blockdata::script::Script;
use bitcoin::util::uint::Uint256;
use bitcoin::blockdata::script::Script;
use bitcoin::util::uint::Uint256;
-use bitcoin::util::hash::Sha256dHash;
use secp256k1::key::PublicKey;
use secp256k1::key::PublicKey;
@@
-24,7
+24,7
@@
pub enum Event {
/// channel. Broadcasting such a transaction prior to this event may lead to our counterparty
/// trivially stealing all funds in the funding transaction!
FundingBroadcastSafe {
/// channel. Broadcasting such a transaction prior to this event may lead to our counterparty
/// trivially stealing all funds in the funding transaction!
FundingBroadcastSafe {
- funding_txo:
(Sha256dHash, u16)
,
+ funding_txo:
OutPoint
,
/// The value passed in to ChannelManager::create_channel
user_channel_id: u64,
},
/// The value passed in to ChannelManager::create_channel
user_channel_id: u64,
},
@@
-90,6
+90,10
@@
pub enum Event {
msg: msgs::ChannelAnnouncement,
update_msg: msgs::ChannelUpdate,
},
msg: msgs::ChannelAnnouncement,
update_msg: msgs::ChannelUpdate,
},
+ /// Used to indicate that a channel_update should be broadcast to all peers.
+ BroadcastChannelUpdate {
+ msg: msgs::ChannelUpdate,
+ },
}
pub trait EventsProvider {
}
pub trait EventsProvider {