mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
multi: comprehensive typo fixes across all packages
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
72a5bc8648
commit
a93736d21e
@@ -36,12 +36,12 @@ type ChainNotifier interface {
|
||||
heightHint uint32) (*ConfirmationEvent, error)
|
||||
|
||||
// RegisterSpendNtfn registers an intent to be notified once the target
|
||||
// outpoint is succesfully spent within a confirmed transaction. The
|
||||
// outpoint is successfully spent within a confirmed transaction. The
|
||||
// returned SpendEvent will receive a send on the 'Spend' transaction
|
||||
// once a transaction spending the input is detected on the blockchain.
|
||||
// The heightHint parameter is provided as a convenience to light
|
||||
// clients. The heightHint denotes the earliest height in the blockchain
|
||||
// in which the target output could've been created.
|
||||
// in which the target output could have been created.
|
||||
//
|
||||
// NOTE: This notifications should be triggered once the transaction is
|
||||
// *seen* on the network, not when it has received a single confirmation.
|
||||
@@ -177,7 +177,7 @@ type NotifierDriver struct {
|
||||
|
||||
// New creates a new instance of a concrete ChainNotifier
|
||||
// implementation given a variadic set up arguments. The function takes
|
||||
// a varidaic number of interface parameters in order to provide
|
||||
// a variadic number of interface parameters in order to provide
|
||||
// initialization flexibility, thereby accommodating several potential
|
||||
// ChainNotifier implementations.
|
||||
New func(args ...interface{}) (ChainNotifier, error)
|
||||
|
@@ -112,7 +112,7 @@ func testSingleConfirmationNotification(miner *rpctest.Harness,
|
||||
// We'd like to test the case of being notified once a txid reaches
|
||||
// a *single* confirmation.
|
||||
//
|
||||
// So first, let's send some coins to "ourself", obtainig a txid.
|
||||
// So first, let's send some coins to "ourself", obtaining a txid.
|
||||
// We're spending from a coinbase output here, so we use the dedicated
|
||||
// function.
|
||||
|
||||
@@ -226,7 +226,7 @@ func testMultiConfirmationNotification(miner *rpctest.Harness,
|
||||
func testBatchConfirmationNotification(miner *rpctest.Harness,
|
||||
notifier chainntnfs.ChainNotifier, t *testing.T) {
|
||||
|
||||
// We'd like to test a case of serving notifiations to multiple
|
||||
// We'd like to test a case of serving notifications to multiple
|
||||
// clients, each requesting to be notified once a txid receives
|
||||
// various numbers of confirmations.
|
||||
confSpread := [6]uint32{1, 2, 3, 6, 20, 22}
|
||||
@@ -887,7 +887,7 @@ func testSpendBeforeNtfnRegistration(miner *rpctest.Harness,
|
||||
// Broadcast our spending transaction.
|
||||
spenderSha, err := miner.Node.SendRawTransaction(spendingTx, true)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to brodacst tx: %v", err)
|
||||
t.Fatalf("unable to broadcast tx: %v", err)
|
||||
}
|
||||
|
||||
err = waitForMempoolTx(miner, spenderSha)
|
||||
@@ -928,7 +928,7 @@ func testSpendBeforeNtfnRegistration(miner *rpctest.Harness,
|
||||
ntfn.SpentOutPoint, outpoint)
|
||||
}
|
||||
if !bytes.Equal(ntfn.SpenderTxHash[:], spenderSha[:]) {
|
||||
t.Fatalf("ntfn includes wrong spender tx sha, reports %v intead of %v",
|
||||
t.Fatalf("ntfn includes wrong spender tx sha, reports %v instead of %v",
|
||||
ntfn.SpenderTxHash[:], spenderSha[:])
|
||||
}
|
||||
if ntfn.SpenderInputIndex != 0 {
|
||||
@@ -980,7 +980,7 @@ func testCancelSpendNtfn(node *rpctest.Harness,
|
||||
// Broadcast our spending transaction.
|
||||
spenderSha, err := node.Node.SendRawTransaction(spendingTx, true)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to brodacst tx: %v", err)
|
||||
t.Fatalf("unable to broadcast tx: %v", err)
|
||||
}
|
||||
|
||||
err = waitForMempoolTx(node, spenderSha)
|
||||
@@ -1007,7 +1007,7 @@ func testCancelSpendNtfn(node *rpctest.Harness,
|
||||
}
|
||||
if !bytes.Equal(ntfn.SpenderTxHash[:], spenderSha[:]) {
|
||||
t.Fatalf("ntfn includes wrong spender tx sha, "+
|
||||
"reports %v intead of %v",
|
||||
"reports %v instead of %v",
|
||||
ntfn.SpenderTxHash[:], spenderSha[:])
|
||||
}
|
||||
if ntfn.SpenderInputIndex != 0 {
|
||||
@@ -1063,7 +1063,7 @@ func testCancelEpochNtfn(node *rpctest.Harness, notifier chainntnfs.ChainNotifie
|
||||
select {
|
||||
case _, ok := <-epochClients[0].Epochs:
|
||||
if ok {
|
||||
t.Fatalf("epoch notification should've been cancelled")
|
||||
t.Fatalf("epoch notification should have been cancelled")
|
||||
}
|
||||
case <-time.After(2 * time.Second):
|
||||
t.Fatalf("epoch notification not sent")
|
||||
@@ -1303,7 +1303,7 @@ var ntfnTests = []testCase{
|
||||
func TestInterfaces(t *testing.T) {
|
||||
// Initialize the harness around a btcd node which will serve as our
|
||||
// dedicated miner to generate blocks, cause re-orgs, etc. We'll set up
|
||||
// this node with a chain length of 125, so we have plentyyy of BTC to
|
||||
// this node with a chain length of 125, so we have plenty of BTC to
|
||||
// play around with.
|
||||
miner, err := rpctest.New(netParams, nil, nil)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user