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:
yyforyongyu committed 2024-04-19 21:33:19 +08:00
1 parent d4c1937572
commit e86843da6e
4 files changed
+12 -16

No files matched your search

+2 -2
View File
@@ -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)
}