projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8051fb0
)
Allow cloning NetworkGraphs
author
Matt Corallo
<git@bluematt.me>
Mon, 22 Feb 2021 16:17:05 +0000
(11:17 -0500)
committer
Matt Corallo
<git@bluematt.me>
Mon, 22 Feb 2021 16:44:22 +0000
(11:44 -0500)
lightning/src/routing/network_graph.rs
patch
|
blob
|
history
diff --git
a/lightning/src/routing/network_graph.rs
b/lightning/src/routing/network_graph.rs
index ab32493351bd75d6970e8eb32b60d9b281d6965b..d9a1d8279dea23fa21acbe8d91956d5a962c52fe 100644
(file)
--- 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<u64, ChannelInfo>,