multi: Fix typos [skip ci]

This commit is contained in:
Dimitris Apostolou committed 2022-01-24 12:19:02 +02:00
1 parent f50950640f
commit 530a2059e5
139 files changed
+254 -254

No files matched your search

+4 -4
View File
@@ -254,7 +254,7 @@ type ConfNtfn struct {
dispatched bool
}
// HistoricalConfDispatch parameterizes a manual rescan for a particular
// HistoricalConfDispatch parametrizes a manual rescan for a particular
// transaction/output script. The parameters include the start and end block
// heights specifying the range of blocks to scan.
type HistoricalConfDispatch struct {
@@ -408,12 +408,12 @@ type SpendNtfn struct {
// an entry for it.
HeightHint uint32
// dispatched signals whether a spend notification has been disptached
// dispatched signals whether a spend notification has been dispatched
// to the client.
dispatched bool
}
// HistoricalSpendDispatch parameterizes a manual rescan to determine the
// HistoricalSpendDispatch parametrizes a manual rescan to determine the
// spending details (if any) of an outpoint/output script. The parameters
// include the start and end block heights specifying the range of blocks to
// scan.
@@ -523,7 +523,7 @@ type TxNotifier struct {
// NewTxNotifier creates a TxNotifier. The current height of the blockchain is
// accepted as a parameter. The different hint caches (confirm and spend) are
// used as an optimization in order to retrieve a better starting point when
// dispatching a recan for a historical event in the chain.
// dispatching a rescan for a historical event in the chain.
func NewTxNotifier(startHeight uint32, reorgSafetyLimit uint32,
confirmHintCache ConfirmHintCache,
spendHintCache SpendHintCache) *TxNotifier {
+4 -4
View File
@@ -282,7 +282,7 @@ func TestTxNotifierFutureConfDispatch(t *testing.T) {
t.Fatal("Expected confirmation update for tx1")
}
// A confirmation notification for this tranaction should be dispatched,
// A confirmation notification for this transaction should be dispatched,
// as it only required one confirmation.
select {
case txConf := <-ntfn1.Event.Confirmed:
@@ -2148,7 +2148,7 @@ func TestTxNotifierSpendHintCache(t *testing.T) {
op2Height = 203
)
// Intiialize our TxNotifier instance backed by a height hint cache.
// Initialize our TxNotifier instance backed by a height hint cache.
hintCache := newMockHintCache()
n := chainntnfs.NewTxNotifier(
startingHeight, chainntnfs.ReorgSafetyLimit, hintCache,
@@ -2331,7 +2331,7 @@ func TestTxNotifierSpendDuringHistoricalRescan(t *testing.T) {
reorgSafety = 10
)
// Intiialize our TxNotifier instance backed by a height hint cache.
// Initialize our TxNotifier instance backed by a height hint cache.
hintCache := newMockHintCache()
n := chainntnfs.NewTxNotifier(
startingHeight, reorgSafety, hintCache, hintCache,
@@ -2511,7 +2511,7 @@ func TestTxNotifierSpendDuringHistoricalRescan(t *testing.T) {
// matured.
err = n.UpdateSpendDetails(ntfn1.HistoricalDispatch.SpendRequest, nil)
if err == nil {
t.Fatalf("expcted updating spend details to fail")
t.Fatalf("expected updating spend details to fail")
}
// Finally, check that the height hint is still there, unchanged.