Skip to content

Commit b2f4742

Browse files
committed
f - Add lock order comment
1 parent 1bb1e3a commit b2f4742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const MAX_SCIDS_PER_REPLY: usize = 8000;
5353
/// Represents the network as nodes and channels between them
5454
pub struct NetworkGraph {
5555
genesis_hash: BlockHash,
56+
// Lock order: channels -> nodes
5657
channels: RwLock<BTreeMap<u64, ChannelInfo>>,
5758
nodes: RwLock<BTreeMap<PublicKey, NodeInfo>>,
5859
}

0 commit comments

Comments
 (0)