Skip to content

Add methods to manage channel fee policies and retrieve channels by outpoint#504

Open
markettes wants to merge 12 commits into
mainfrom
feat/set-channel-fee-policy
Open

Add methods to manage channel fee policies and retrieve channels by outpoint#504
markettes wants to merge 12 commits into
mainfrom
feat/set-channel-fee-policy

Conversation

@markettes
Copy link
Copy Markdown
Contributor

Introduce methods for setting channel fee policies and retrieving channels by their outpoint. Implement unit tests to ensure functionality and correctness of these new features.

@markettes markettes requested a review from Jossec101 May 6, 2026 08:15
Comment thread src/Proto/nodeguard.proto
Comment thread src/Services/LightningService.cs
@markettes markettes force-pushed the feat/set-channel-fee-policy branch from cdc1049 to bf09174 Compare May 13, 2026 08:30
@markettes markettes force-pushed the feat/set-channel-fee-policy branch from d64426b to a9e00a8 Compare May 13, 2026 14:56
@markettes markettes requested a review from Jossec101 May 14, 2026 10:23

if (inboundBaseFeeMsat.HasValue && inboundFeeRatePpm.HasValue)
{
if (inboundBaseFeeMsat.Value > baseFeeMsat)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry I made a mistake, it has to be lower in absolute values, also are we handling that these values should be always negative?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the part that inbound has to be ABS lower than outbound/general is not really accurate. It can be abs(normal)<abs(inbound) since inbound has nothing to do with outbound. Being inbound the channel x and y the outbound channel, the discound in inbound fees of channel x have to be lower than the outbound of channel y. Thats the correct constraint, hard to limit tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants