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

lightningnetwork / lnd / 13035292482

29 Jan 2025 03:59PM UTC coverage: 49.3% (-9.5%) from 58.777%
13035292482

Pull #9456

github

mohamedawnallah
docs: update release-notes-0.19.0.md

In this commit, we warn users about the removal
of RPCs `SendToRoute`, `SendToRouteSync`, `SendPayment`,
and `SendPaymentSync` in the next release 0.20.
Pull Request #9456: lnrpc+docs: deprecate warning `SendToRoute`, `SendToRouteSync`, `SendPayment`, and `SendPaymentSync` in Release 0.19

100634 of 204126 relevant lines covered (49.3%)

1.54 hits per line

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

0.0
/lntest/mock/chainnotifier.go
1
package mock
2

3
import (
4
        "github.com/btcsuite/btcd/chaincfg/chainhash"
5
        "github.com/btcsuite/btcd/wire"
6
        "github.com/lightningnetwork/lnd/chainntnfs"
7
)
8

9
// ChainNotifier is a mock implementation of the ChainNotifier interface.
10
type ChainNotifier struct {
11
        SpendChan chan *chainntnfs.SpendDetail
12
        EpochChan chan *chainntnfs.BlockEpoch
13
        ConfChan  chan *chainntnfs.TxConfirmation
14
}
15

16
// RegisterConfirmationsNtfn returns a ConfirmationEvent that contains a channel
17
// that the tx confirmation will go over.
18
func (c *ChainNotifier) RegisterConfirmationsNtfn(txid *chainhash.Hash,
19
        pkScript []byte, numConfs, heightHint uint32,
20
        opts ...chainntnfs.NotifierOption) (*chainntnfs.ConfirmationEvent, error) {
×
21

×
22
        return &chainntnfs.ConfirmationEvent{
×
23
                Confirmed: c.ConfChan,
×
24
                Cancel:    func() {},
×
25
        }, nil
26
}
27

28
// RegisterSpendNtfn returns a SpendEvent that contains a channel that the spend
29
// details will go over.
30
func (c *ChainNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint,
31
        pkScript []byte, heightHint uint32) (*chainntnfs.SpendEvent, error) {
×
32

×
33
        return &chainntnfs.SpendEvent{
×
34
                Spend:  c.SpendChan,
×
35
                Cancel: func() {},
×
36
        }, nil
37
}
38

39
// RegisterBlockEpochNtfn returns a BlockEpochEvent that contains a channel that
40
// block epochs will go over.
41
func (c *ChainNotifier) RegisterBlockEpochNtfn(blockEpoch *chainntnfs.BlockEpoch) (
42
        *chainntnfs.BlockEpochEvent, error) {
×
43

×
44
        return &chainntnfs.BlockEpochEvent{
×
45
                Epochs: c.EpochChan,
×
46
                Cancel: func() {},
×
47
        }, nil
48
}
49

50
// Start currently returns a dummy value.
51
func (c *ChainNotifier) Start() error {
×
52
        return nil
×
53
}
×
54

55
// Started currently returns a dummy value.
56
func (c *ChainNotifier) Started() bool {
×
57
        return true
×
58
}
×
59

60
// Stop currently returns a dummy value.
61
func (c *ChainNotifier) Stop() error {
×
62
        return nil
×
63
}
×
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