We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb1e3a commit b2f4742Copy full SHA for b2f4742
lightning/src/routing/network_graph.rs
@@ -53,6 +53,7 @@ const MAX_SCIDS_PER_REPLY: usize = 8000;
53
/// Represents the network as nodes and channels between them
54
pub struct NetworkGraph {
55
genesis_hash: BlockHash,
56
+ // Lock order: channels -> nodes
57
channels: RwLock<BTreeMap<u64, ChannelInfo>>,
58
nodes: RwLock<BTreeMap<PublicKey, NodeInfo>>,
59
}
0 commit comments