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

lightningnetwork / lnd / 12430766295

20 Dec 2024 11:38AM UTC coverage: 52.607% (-6.1%) from 58.716%
12430766295

Pull #9384

github

ziggie1984
funding: refactor gossip msg code

We almost never need to create all messages at the same time
(ChanUpdate,ChanAnnouncement,Proof) so we split it up into own
functions.
Pull Request #9384: Refactor gossip msg code

224 of 279 new or added lines in 7 files covered. (80.29%)

27070 existing lines in 437 files now uncovered.

53540 of 101773 relevant lines covered (52.61%)

4.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/watchtower/wtdb/migration6/codec.go
1
package migration6
2

3
import (
4
        "encoding/hex"
5
)
6

7
// SessionIDSize is 33-bytes; it is a serialized, compressed public key.
8
const SessionIDSize = 33
9

10
// SessionID is created from the remote public key of a client, and serves as a
11
// unique identifier and authentication for sending state updates.
12
type SessionID [SessionIDSize]byte
13

14
// String returns a hex encoding of the session id.
UNCOV
15
func (s SessionID) String() string {
×
UNCOV
16
        return hex.EncodeToString(s[:])
×
UNCOV
17
}
×
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

© 2025 Coveralls, Inc