mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
routing/chainview/interface_test: use EdgePoint field names
This commit is contained in:
parent
b608fca447
commit
a76b9a86cd
1 changed files with 5 additions and 5 deletions
|
@ -241,8 +241,8 @@ func testFilterBlockNotifications(node *rpctest.Harness,
|
||||||
|
|
||||||
// Now we'll add both outpoints to the current filter.
|
// Now we'll add both outpoints to the current filter.
|
||||||
filter := []channeldb.EdgePoint{
|
filter := []channeldb.EdgePoint{
|
||||||
{targetScript, *outPoint1},
|
{FundingPkScript: targetScript, OutPoint: *outPoint1},
|
||||||
{targetScript, *outPoint2},
|
{FundingPkScript: targetScript, OutPoint: *outPoint2},
|
||||||
}
|
}
|
||||||
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -387,7 +387,7 @@ func testUpdateFilterBackTrack(node *rpctest.Harness,
|
||||||
// After the block has been mined+notified we'll update the filter with
|
// After the block has been mined+notified we'll update the filter with
|
||||||
// a _prior_ height so a "rewind" occurs.
|
// a _prior_ height so a "rewind" occurs.
|
||||||
filter := []channeldb.EdgePoint{
|
filter := []channeldb.EdgePoint{
|
||||||
{testScript, *outPoint},
|
{FundingPkScript: testScript, OutPoint: *outPoint},
|
||||||
}
|
}
|
||||||
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -502,8 +502,8 @@ func testFilterSingleBlock(node *rpctest.Harness, chainView FilteredChainView,
|
||||||
// Now we'll manually trigger filtering the block generated above.
|
// Now we'll manually trigger filtering the block generated above.
|
||||||
// First, we'll add the two outpoints to our filter.
|
// First, we'll add the two outpoints to our filter.
|
||||||
filter := []channeldb.EdgePoint{
|
filter := []channeldb.EdgePoint{
|
||||||
{testScript, *outPoint1},
|
{FundingPkScript: testScript, OutPoint: *outPoint1},
|
||||||
{testScript, *outPoint2},
|
{FundingPkScript: testScript, OutPoint: *outPoint2},
|
||||||
}
|
}
|
||||||
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
err = chainView.UpdateFilter(filter, uint32(currentHeight))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue