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

lightningnetwork / lnd / 13238 / 2
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 14 Jan 2020 04:44AM UTC
Files 396
Run time 20s
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

14 Jan 2020 04:26AM UTC coverage: 62.984% (+0.04%) from 62.942%
13238.2

push

travis-ci

Roasbeef
lnwire: explicitly handle empty list when encoding short chan IDs

Before this commit, both writing and reading an encoded empty set of
short channel IDs from the wire would fail. Prior to this commit, we
treated decoding an empty set as a caller error, and failed to write out
the zlib encoding of an empty set in a way that us and the other
implementations were able to read.

To fix this, rather than giving zlib an empty buffer to write out (which
results in an encoding with the zlib header data and the rest), we just
write a blank slice. When decoding, if we have an empty query body, then
we'll return a `nil` slice.

With the above changes, we'll now always write out an empty short
channel ID set as:
```
0001 (1 byte follows) || <encoding_type>
```

A new test has also been added to exercise this case for both known
encoding types.

50186 of 79680 relevant lines covered (62.98%)

63770.42 hits per line

Source Files on job 13238.2
  • Tree
  • List 0
  • Changed 127
  • Source Changed 1
  • Coverage Changed 127
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 9231
  • Travis Job 13238.2
  • 17200afc on github
  • Prev Job for on master (#13220.2)
  • Next Job for on master (#13240.2)
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