sweep+lntest: fix typos

This commit is contained in:
Thabokani 2023-12-30 19:46:35 +08:00
parent 4d8fa349ca
commit 55072bfd5e
No known key found for this signature in database
GPG key ID: 2AB9CDE56F6D8990
4 changed files with 4 additions and 4 deletions

View file

@ -175,7 +175,7 @@ func (h *HarnessTest) Context() context.Context {
// node's wallets will be funded wallets with 10x10 BTC outputs each. // node's wallets will be funded wallets with 10x10 BTC outputs each.
func (h *HarnessTest) SetupStandbyNodes() { func (h *HarnessTest) SetupStandbyNodes() {
h.Log("Setting up standby nodes Alice and Bob...") h.Log("Setting up standby nodes Alice and Bob...")
defer h.Log("Finshed the setup, now running tests...") defer h.Log("Finished the setup, now running tests...")
lndArgs := []string{ lndArgs := []string{
"--default-remote-max-htlcs=483", "--default-remote-max-htlcs=483",

View file

@ -12,7 +12,7 @@ import (
"github.com/lightningnetwork/lnd/lntest/wait" "github.com/lightningnetwork/lnd/lntest/wait"
) )
// nodeManager is responsible for hanlding the start and stop of a given node. // nodeManager is responsible for handling the start and stop of a given node.
// It also keeps track of the running nodes. // It also keeps track of the running nodes.
type nodeManager struct { type nodeManager struct {
sync.Mutex sync.Mutex

View file

@ -2420,7 +2420,7 @@ func TestClusterByLockTime(t *testing.T) {
remainingInputs, remainingInputs,
) )
// Assert the mocked methods are called as expeceted. // Assert the mocked methods are called as expected.
input1LockTime1.AssertExpectations(t) input1LockTime1.AssertExpectations(t)
input2LockTime1.AssertExpectations(t) input2LockTime1.AssertExpectations(t)
input3LockTime2.AssertExpectations(t) input3LockTime2.AssertExpectations(t)

View file

@ -186,7 +186,7 @@ func createSweepTx(inputs []input.Input, outputs []*wire.TxOut,
if lt, ok := o.RequiredLockTime(); ok { if lt, ok := o.RequiredLockTime(); ok {
// If another input commits to a different locktime, // If another input commits to a different locktime,
// they cannot be combined in the same transcation. // they cannot be combined in the same transaction.
if locktime != -1 && locktime != int32(lt) { if locktime != -1 && locktime != int32(lt) {
return nil, fmt.Errorf("incompatible locktime") return nil, fmt.Errorf("incompatible locktime")
} }