Skip to content

Commit

Permalink
Fix the direction of ChannelUpdate in mock graph environment
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jan 17, 2025
1 parent 78d52a5 commit 0b6445e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fiber/tests/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ impl MockNetworkGraph {
channel_outpoint.clone(),
now_timestamp_as_millis_u64(),
if node_a_is_node1 {
ChannelUpdateMessageFlags::UPDATE_OF_NODE2
} else {
ChannelUpdateMessageFlags::UPDATE_OF_NODE1
} else {
ChannelUpdateMessageFlags::UPDATE_OF_NODE2
},
ChannelUpdateChannelFlags::empty(),
TLC_EXPIRY_DELTA_IN_TESTS,
Expand All @@ -156,9 +156,9 @@ impl MockNetworkGraph {
channel_outpoint.clone(),
now_timestamp_as_millis_u64(),
if node_a_is_node1 {
ChannelUpdateMessageFlags::UPDATE_OF_NODE1
} else {
ChannelUpdateMessageFlags::UPDATE_OF_NODE2
} else {
ChannelUpdateMessageFlags::UPDATE_OF_NODE1
},
ChannelUpdateChannelFlags::empty(),
22,
Expand Down

0 comments on commit 0b6445e

Please sign in to comment.