X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fchain%2Fmod.rs;h=1fb30a9aeb5f9375b4e1ecdac2950aea62a9ab37;hb=3d5a6913b5a061f8143907b4261cbc4dcc8ca48b;hp=356520b5cba86e647acdec77fd0cb86b683e7d58;hpb=edb22e1ab9818c4f9efe85c7752c6048589489c9;p=rust-lightning diff --git a/lightning/src/chain/mod.rs b/lightning/src/chain/mod.rs index 356520b5..1fb30a9a 100644 --- a/lightning/src/chain/mod.rs +++ b/lightning/src/chain/mod.rs @@ -20,7 +20,9 @@ use crate::chain::channelmonitor::{ChannelMonitor, ChannelMonitorUpdate, Monitor use crate::ln::ChannelId; use crate::sign::ecdsa::WriteableEcdsaChannelSigner; use crate::chain::transaction::{OutPoint, TransactionData}; +use crate::impl_writeable_tlv_based; +#[allow(unused_imports)] use crate::prelude::*; pub mod chaininterface; @@ -55,6 +57,11 @@ impl BestBlock { } } +impl_writeable_tlv_based!(BestBlock, { + (0, block_hash, required), + (2, height, required), +}); + /// The `Listen` trait is used to notify when blocks have been connected or disconnected from the /// chain.