routing/chainview: linter fixes
This commit is contained in:
parent
1b4862d815
commit
31cb1cb65b
@ -700,6 +700,7 @@ func testChannelForceClosure(net *networkHarness, t *harnessTest) {
|
|||||||
|
|
||||||
// Now that the channel has been force closed, it should show up in the
|
// Now that the channel has been force closed, it should show up in the
|
||||||
// PendingChannels RPC under the force close section.
|
// PendingChannels RPC under the force close section.
|
||||||
|
time.Sleep(time.Millisecond * 300)
|
||||||
pendingChansRequest := &lnrpc.PendingChannelRequest{}
|
pendingChansRequest := &lnrpc.PendingChannelRequest{}
|
||||||
pendingChanResp, err := net.Alice.PendingChannels(ctxb, pendingChansRequest)
|
pendingChanResp, err := net.Alice.PendingChannels(ctxb, pendingChansRequest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
// The subset of the UTXO to be subscribed is that of all the currently opened
|
// The subset of the UTXO to be subscribed is that of all the currently opened
|
||||||
// channels. Each time a channel is closed (the output is spent), a
|
// channels. Each time a channel is closed (the output is spent), a
|
||||||
// notification is to be sent allowing the graph to be pruned.
|
// notification is to be sent allowing the graph to be pruned.
|
||||||
|
//
|
||||||
// NOTE: As FilteredBlocks are generated, it is recommended that
|
// NOTE: As FilteredBlocks are generated, it is recommended that
|
||||||
// implementations reclaim the space occupied by newly spent outputs.
|
// implementations reclaim the space occupied by newly spent outputs.
|
||||||
type FilteredChainView interface {
|
type FilteredChainView interface {
|
||||||
|
@ -34,7 +34,7 @@ var (
|
|||||||
testScript, _ = txscript.PayToAddrScript(testAddr)
|
testScript, _ = txscript.PayToAddrScript(testAddr)
|
||||||
)
|
)
|
||||||
|
|
||||||
func getTestTxId(miner *rpctest.Harness) (*chainhash.Hash, error) {
|
func getTestTXID(miner *rpctest.Harness) (*chainhash.Hash, error) {
|
||||||
script, err := txscript.PayToAddrScript(testAddr)
|
script, err := txscript.PayToAddrScript(testAddr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -118,11 +118,11 @@ func testFilterBlockNotifications(node *rpctest.Harness,
|
|||||||
|
|
||||||
// To start the test, we'll create to fresh outputs paying to the
|
// To start the test, we'll create to fresh outputs paying to the
|
||||||
// private key that we generated above.
|
// private key that we generated above.
|
||||||
txid1, err := getTestTxId(node)
|
txid1, err := getTestTXID(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to get test txid")
|
t.Fatalf("unable to get test txid")
|
||||||
}
|
}
|
||||||
txid2, err := getTestTxId(node)
|
txid2, err := getTestTXID(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to get test txid")
|
t.Fatalf("unable to get test txid")
|
||||||
}
|
}
|
||||||
@ -248,7 +248,7 @@ func testUpdateFilterBackTrack(node *rpctest.Harness, chainView FilteredChainVie
|
|||||||
|
|
||||||
// To start, we'll create a fresh output paying to the height generated
|
// To start, we'll create a fresh output paying to the height generated
|
||||||
// above.
|
// above.
|
||||||
txid, err := getTestTxId(node)
|
txid, err := getTestTXID(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to get test txid")
|
t.Fatalf("unable to get test txid")
|
||||||
}
|
}
|
||||||
@ -335,11 +335,11 @@ func testFilterSingleBlock(node *rpctest.Harness, chainView FilteredChainView,
|
|||||||
|
|
||||||
// First, we'll create a block that includes two outputs that we're
|
// First, we'll create a block that includes two outputs that we're
|
||||||
// able to spend with the private key generated above.
|
// able to spend with the private key generated above.
|
||||||
txid1, err := getTestTxId(node)
|
txid1, err := getTestTXID(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to get test txid")
|
t.Fatalf("unable to get test txid")
|
||||||
}
|
}
|
||||||
txid2, err := getTestTxId(node)
|
txid2, err := getTestTXID(node)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to get test txid")
|
t.Fatalf("unable to get test txid")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user