Skip to content

Commit

Permalink
add private channel example
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Dec 21, 2022
1 parent 1782c55 commit 715bcf1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions rules/ChannelAccept.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// only channels > 0.75 Msat
// only channels > 0.75 Mio sats
ChannelAccept.Event.FundingAmt >= 750000 &&
// nodes with high 1ML availability score
ChannelAccept.OneMl.Noderank.Availability > 100 &&
Expand All @@ -17,4 +17,13 @@ ChannelAccept.OneMl.Noderank.Age < 10000 &&
ChannelAccept.Amboss.GraphInfo.Metrics.CapacityRank < 1000 ||
// or nodes with high-ranking channel count
ChannelAccept.Amboss.GraphInfo.Metrics.ChannelsRank < 1000
)
)&&
(
// Only allow private channels which are smaller than 10 mio sats
(ChannelAccept.Event.ChannelFlags & 1) == 0 &&
ChannelAccept.Event.FundingAmt <= 10000000 ||
// allow all public channels
(ChannelAccept.Event.ChannelFlags & 1) == 1
)


0 comments on commit 715bcf1

Please sign in to comment.