diff --git a/lnd_test.go b/lnd_test.go index 1e3d6dcc..459fa5cb 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -700,6 +700,7 @@ func testChannelForceClosure(net *networkHarness, t *harnessTest) { // Now that the channel has been force closed, it should show up in the // PendingChannels RPC under the force close section. + time.Sleep(time.Millisecond * 300) pendingChansRequest := &lnrpc.PendingChannelRequest{} pendingChanResp, err := net.Alice.PendingChannels(ctxb, pendingChansRequest) if err != nil { diff --git a/routing/chainview/interface.go b/routing/chainview/interface.go index 25be5ea6..9e12d1c7 100644 --- a/routing/chainview/interface.go +++ b/routing/chainview/interface.go @@ -11,7 +11,7 @@ import ( // 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 // notification is to be sent allowing the graph to be pruned. - +// // NOTE: As FilteredBlocks are generated, it is recommended that // implementations reclaim the space occupied by newly spent outputs. type FilteredChainView interface { diff --git a/routing/chainview/interface_test.go b/routing/chainview/interface_test.go index 2257cdf0..883f20bd 100644 --- a/routing/chainview/interface_test.go +++ b/routing/chainview/interface_test.go @@ -34,7 +34,7 @@ var ( 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) if err != nil { 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 // private key that we generated above. - txid1, err := getTestTxId(node) + txid1, err := getTestTXID(node) if err != nil { t.Fatalf("unable to get test txid") } - txid2, err := getTestTxId(node) + txid2, err := getTestTXID(node) if err != nil { 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 // above. - txid, err := getTestTxId(node) + txid, err := getTestTXID(node) if err != nil { 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 // able to spend with the private key generated above. - txid1, err := getTestTxId(node) + txid1, err := getTestTXID(node) if err != nil { t.Fatalf("unable to get test txid") } - txid2, err := getTestTxId(node) + txid2, err := getTestTXID(node) if err != nil { t.Fatalf("unable to get test txid") }