X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Futil%2Fevents.rs;fp=src%2Futil%2Fevents.rs;h=e11e4e82c1ccbf2b735c804ab288c4ea215bc13e;hb=b02670a920f8edaf7b41eed09b1d9cfe01f08a5a;hp=51417c63c75ef0fd7f5e4694d9d35fca7a9d3cfe;hpb=4cca9332889045492a5c335a91f45c129bded18e;p=rust-lightning diff --git a/src/util/events.rs b/src/util/events.rs index 51417c63..e11e4e82 100644 --- a/src/util/events.rs +++ b/src/util/events.rs @@ -129,6 +129,15 @@ pub enum Event { /// The update messages which should be sent. ALL messages in the struct should be sent! updates: msgs::CommitmentUpdate, }, + /// Used to indicate that a revoke_and_ack message should be sent to the peer with the given node_id. + /// + /// This event is handled by PeerManager::process_events if you are using a PeerManager. + SendRevokeAndACK { + /// The node_id of the node which should receive this message + node_id: PublicKey, + /// The message which should be sent. + msg: msgs::RevokeAndACK, + }, /// Used to indicate that a shutdown message should be sent to the peer with the given node_id. /// /// This event is handled by PeerManager::process_events if you are using a PeerManager.