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

lightningnetwork / lnd / 13572832752

25 Feb 2025 05:33AM UTC coverage: 49.404% (-9.4%) from 58.77%
13572832752

Pull #9562

github

NishantBansal2003
"multi: Add itest for funding timeout"

This commit adds an integration test that
verifies the funding timeout behavior in the
funding manager, in dev/integration test.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Pull Request #9562: Make MaxWaitNumBlocksFundingConf Configurable for itest

29 of 31 new or added lines in 4 files covered. (93.55%)

27211 existing lines in 434 files now uncovered.

101066 of 204570 relevant lines covered (49.4%)

1.54 hits per line

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

70.0
/netann/sign.go
1
package netann
2

3
import (
4
        "fmt"
5

6
        "github.com/lightningnetwork/lnd/input"
7
        "github.com/lightningnetwork/lnd/keychain"
8
        "github.com/lightningnetwork/lnd/lnwallet"
9
        "github.com/lightningnetwork/lnd/lnwire"
10
)
11

12
// SignAnnouncement signs any type of gossip message that is announced on the
13
// network.
14
func SignAnnouncement(signer lnwallet.MessageSigner, keyLoc keychain.KeyLocator,
15
        msg lnwire.Message) (input.Signature, error) {
3✔
16

3✔
17
        var (
3✔
18
                data []byte
3✔
19
                err  error
3✔
20
        )
3✔
21

3✔
22
        switch m := msg.(type) {
3✔
UNCOV
23
        case *lnwire.ChannelAnnouncement1:
×
UNCOV
24
                data, err = m.DataToSign()
×
25
        case *lnwire.ChannelUpdate1:
3✔
26
                data, err = m.DataToSign()
3✔
27
        case *lnwire.NodeAnnouncement:
3✔
28
                data, err = m.DataToSign()
3✔
29
        default:
×
30
                return nil, fmt.Errorf("can't sign %T message", m)
×
31
        }
32
        if err != nil {
3✔
33
                return nil, fmt.Errorf("unable to get data to sign: %w", err)
×
34
        }
×
35

36
        return signer.SignMessage(keyLoc, data, true)
3✔
37
}
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