From 4b04f3ff1e4079c62103a7013b0705ccfea2a310 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 22 Feb 2021 11:17:05 -0500 Subject: [PATCH] Allow cloning NetworkGraphs --- lightning/src/routing/network_graph.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5