mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
derive(Debug) on Events
We'd previously largely not turned on derive(Debug) on any of our structs, but not for good reason. Especially for Events objects, Debug can be a very useful for users to quickly print what they received from us without having to write out a large match.
This commit is contained in:
parent
640ae63a5a
commit
e7678d42d9
2 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,7 @@ use ln::msgs::DecodeError;
|
|||
/// spend on-chain. The information needed to do this is provided in this enum, including the
|
||||
/// outpoint describing which txid and output index is available, the full output which exists at
|
||||
/// that txid/index, and any keys or other information required to sign.
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum SpendableOutputDescriptor {
|
||||
/// An output to a script which was provided via KeysInterface, thus you should already know
|
||||
/// how to spend it. No keys are provided as rust-lightning was never given any keys - only the
|
||||
|
|
|
@ -31,6 +31,7 @@ use std::time::Duration;
|
|||
/// Note that while Writeable and Readable are implemented for Event, you probably shouldn't use
|
||||
/// them directly as they don't round-trip exactly (for example FundingGenerationReady is never
|
||||
/// written as it makes no sense to respond to it after reconnecting to peers).
|
||||
#[derive(Debug)]
|
||||
pub enum Event {
|
||||
/// Used to indicate that the client should generate a funding transaction with the given
|
||||
/// parameters and then call ChannelManager::funding_transaction_generated.
|
||||
|
|
Loading…
Add table
Reference in a new issue