mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-13 10:21:37 +02:00
lntest: adds test for previous outpoints
This commit is contained in:
parent
983d917d4a
commit
f6d21d9b1b
@ -199,6 +199,18 @@ func testOnchainFundRecovery(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
fn(node)
|
fn(node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the previous outpoints are set correctly.
|
||||||
|
req := &lnrpc.GetTransactionsRequest{
|
||||||
|
StartHeight: 0,
|
||||||
|
EndHeight: -1,
|
||||||
|
}
|
||||||
|
txDetails, err := node.GetTransactions(ctxb, req)
|
||||||
|
require.NoError(t.t, err)
|
||||||
|
|
||||||
|
for _, tx := range txDetails.Transactions {
|
||||||
|
require.Greater(t.t, len(tx.PreviousOutpoints), 0)
|
||||||
|
}
|
||||||
|
|
||||||
// Lastly, shutdown this Carol so we can move on to the next
|
// Lastly, shutdown this Carol so we can move on to the next
|
||||||
// restoration.
|
// restoration.
|
||||||
shutdownAndAssert(net, t, node)
|
shutdownAndAssert(net, t, node)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user