• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 684
62%

Build:
DEFAULT BRANCH: master
Ran 24 Mar 2017 11:50PM UTC
Jobs 2
Files 0
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
684

push

travis-ci

Roasbeef
htlcswitch: add HTLC overflow flow-control via bounded channels

This commit fixes a prior bug which would cause the set of HTLC’s on a
node’s commitment to potentially overflow if an HTLC was accepted or
attempted to be forwarded that but the commitment transaction over the
maximum allowed HTLC’s on a commitment transaction. This would cause
the HTLC to silently be rejected or cause a connection disconnect. In
either case, this would cause the two states to be desynchronized any
pending HTLC’s to be ignored.

We fix this issue by introducing the concept of a bounded channel,
which is a channel in which the number of items send and recevied over
the channel must be balanced in order to allow a new send to succeed
w/o blocking. We achieve this by using a chan struct{} as a semaphore
and decrement it each time a packet it sent, increasing the semaphore
one a packet is received. This creates a channel that we can use to
ensure the switch never sends more than N HTLC’s to a link before any
of the HTLC’s have been settled.

With this bug fix, it’s now once again possible to trigger sustained
bursts of payments through lnd nodes.

7140 of 10342 relevant lines covered (69.04%)

4818.96 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
213
100.0
lnwallet/channel.go
262
100.0
channeldb/channel.go
Jobs
ID Job ID Ran Files Coverage
1 684.1 24 Mar 2017 11:50PM UTC 0
69.04
Travis Job 684.1
2 684.2 24 Mar 2017 11:58PM UTC 0
69.03
Travis Job 684.2
Source Files on build 684
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #684
  • 505421db on github
  • Prev Build on master (#675)
  • Next Build on master (#692)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc