Skip to content

Commit 1171a0b

Browse files
committed
Allow cloning NetworkGraphs
1 parent 2fc9888 commit 1171a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use bitcoin::hashes::hex::ToHex;
4545
const MAX_EXCESS_BYTES_FOR_RELAY: usize = 1024;
4646

4747
/// Represents the network as nodes and channels between them
48-
#[derive(PartialEq)]
48+
#[derive(Clone, PartialEq)]
4949
pub struct NetworkGraph {
5050
genesis_hash: BlockHash,
5151
channels: BTreeMap<u64, ChannelInfo>,

0 commit comments

Comments
 (0)