sweep: rename NotifyPublishTx to StoreTx
To properly reflect what the method really does. We also changes the method signature so only a hash is used.
This commit is contained in:
4 files changed
+12
-16
No files matched your search
+2
-2
@@ -50,7 +50,7 @@ func testStore(t *testing.T, createStore func() (SweeperStore, error)) {
|
||||
},
|
||||
})
|
||||
|
||||
err = store.NotifyPublishTx(&tx1)
|
||||
err = store.StoreTx(tx1.TxHash())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -63,7 +63,7 @@ func testStore(t *testing.T, createStore func() (SweeperStore, error)) {
|
||||
},
|
||||
})
|
||||
|
||||
err = store.NotifyPublishTx(&tx2)
|
||||
err = store.StoreTx(tx2.TxHash())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user