Change routing table sync to use gossip_queries
[rust-lightning] / lightning / src / ln / chan_utils.rs
index a9be581b8f18935eaccbeb42374eea2fee70eb79..7b7d511d653e0553e2fb41d44cd97c2a31adf445 100644 (file)
@@ -123,7 +123,7 @@ impl CounterpartyCommitmentSecrets {
        }
 
        #[inline]
-       pub(super) fn derive_secret(secret: [u8; 32], bits: u8, idx: u64) -> [u8; 32] {
+       fn derive_secret(secret: [u8; 32], bits: u8, idx: u64) -> [u8; 32] {
                let mut res: [u8; 32] = secret;
                for i in 0..bits {
                        let bitpos = bits - 1 - i;
@@ -318,6 +318,7 @@ impl_writeable!(TxCreationKeys, 33*6,
 /// in the signer.
 /// The pre-calculated keys are an optimization, because ChannelKeys has enough
 /// information to re-derive them.
+#[derive(PartialEq, Clone)]
 pub struct PreCalculatedTxCreationKeys(TxCreationKeys);
 
 impl PreCalculatedTxCreationKeys {