chainntnfs: update interface tests to pass the prev script into RegisterSpendNtfn
This commit is contained in:
parent
f87b1a94c5
commit
1a5b1d9792
@ -420,8 +420,9 @@ func testSpendNotification(miner *rpctest.Harness,
|
|||||||
const numClients = 5
|
const numClients = 5
|
||||||
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
||||||
for i := 0; i < numClients; i++ {
|
for i := 0; i < numClients; i++ {
|
||||||
spentIntent, err := notifier.RegisterSpendNtfn(outpoint,
|
spentIntent, err := notifier.RegisterSpendNtfn(
|
||||||
uint32(currentHeight))
|
outpoint, pkScript, uint32(currentHeight),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to register for spend ntfn: %v", err)
|
t.Fatalf("unable to register for spend ntfn: %v", err)
|
||||||
}
|
}
|
||||||
@ -471,8 +472,9 @@ func testSpendNotification(miner *rpctest.Harness,
|
|||||||
|
|
||||||
// Make sure registering a client after the tx is in the mempool still
|
// Make sure registering a client after the tx is in the mempool still
|
||||||
// doesn't trigger a notification.
|
// doesn't trigger a notification.
|
||||||
spentIntent, err := notifier.RegisterSpendNtfn(outpoint,
|
spentIntent, err := notifier.RegisterSpendNtfn(
|
||||||
uint32(currentHeight))
|
outpoint, pkScript, uint32(currentHeight),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to register for spend ntfn: %v", err)
|
t.Fatalf("unable to register for spend ntfn: %v", err)
|
||||||
}
|
}
|
||||||
@ -918,8 +920,9 @@ func testSpendBeforeNtfnRegistration(miner *rpctest.Harness,
|
|||||||
const numClients = 2
|
const numClients = 2
|
||||||
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
||||||
for i := 0; i < numClients; i++ {
|
for i := 0; i < numClients; i++ {
|
||||||
spentIntent, err := notifier.RegisterSpendNtfn(outpoint,
|
spentIntent, err := notifier.RegisterSpendNtfn(
|
||||||
uint32(currentHeight))
|
outpoint, pkScript, uint32(currentHeight),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to register for spend ntfn: %v",
|
t.Fatalf("unable to register for spend ntfn: %v",
|
||||||
err)
|
err)
|
||||||
@ -998,8 +1001,9 @@ func testCancelSpendNtfn(node *rpctest.Harness,
|
|||||||
const numClients = 2
|
const numClients = 2
|
||||||
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
spendClients := make([]*chainntnfs.SpendEvent, numClients)
|
||||||
for i := 0; i < numClients; i++ {
|
for i := 0; i < numClients; i++ {
|
||||||
spentIntent, err := notifier.RegisterSpendNtfn(outpoint,
|
spentIntent, err := notifier.RegisterSpendNtfn(
|
||||||
uint32(currentHeight))
|
outpoint, pkScript, uint32(currentHeight),
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unable to register for spend ntfn: %v", err)
|
t.Fatalf("unable to register for spend ntfn: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user