Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -8553,8 +8553,10 @@ func (r *rpcServer) getInboundPolicy(ctx context.Context, chanID uint64,
return nil, fmt.Errorf("unable to fetch channel: %w", err)
}

// We want the policy that corresponds to the node that is the remote
// peer in the channel.
policy := edge.Node2Policy
if edge.Node2Pub == remotePubStr {
if edge.Node1Pub == remotePubStr {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, the direction of the policy here is relative

policy = edge.Node1Policy
}

Expand Down