From: Matt Corallo Date: Mon, 22 Feb 2021 16:17:05 +0000 (-0500) Subject: Allow cloning NetworkGraphs X-Git-Tag: v0.0.13~22^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=4b04f3ff1e4079c62103a7013b0705ccfea2a310;p=rust-lightning Allow cloning NetworkGraphs --- diff --git a/lightning/src/routing/network_graph.rs b/lightning/src/routing/network_graph.rs index ab3249335..d9a1d8279 100644 --- a/lightning/src/routing/network_graph.rs +++ b/lightning/src/routing/network_graph.rs @@ -45,7 +45,7 @@ use bitcoin::hashes::hex::ToHex; const MAX_EXCESS_BYTES_FOR_RELAY: usize = 1024; /// Represents the network as nodes and channels between them -#[derive(PartialEq)] +#[derive(Clone, PartialEq)] pub struct NetworkGraph { genesis_hash: BlockHash, channels: BTreeMap,