]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Improve routing announcement test
authorGleb Naumenko <naumenko.gs@gmail.com>
Mon, 29 Jun 2020 17:48:01 +0000 (20:48 +0300)
committerGleb Naumenko <naumenko.gs@gmail.com>
Wed, 22 Jul 2020 13:21:04 +0000 (16:21 +0300)
lightning/src/routing/network_graph.rs

index 9c93b246f0762b72e2601151d5eff2f64ca7cdee..e9b4fdbf7375a8cf17e67a9e8beb23b8e8681711 100644 (file)
@@ -1194,6 +1194,7 @@ mod tests {
                        Ok(res) => assert!(!res),
                        _ => panic!()
                };
+               unsigned_channel_update.timestamp += 10;
 
                unsigned_channel_update.short_channel_id += 1;
                let msghash = hash_to_message!(&Sha256dHash::hash(&unsigned_channel_update.encode()[..])[..]);