From bcfd8d5b47a49fe5f4b755a909e0b92ffbfdd51c Mon Sep 17 00:00:00 2001 From: chuangjinglu Date: Sat, 23 Nov 2024 13:15:22 +0800 Subject: [PATCH] multi: fix some function names in interface comment Signed-off-by: chuangjinglu --- input/input.go | 2 +- input/mocks.go | 2 +- sweep/walletsweep.go | 5 +++-- watchtower/wtwire/message.go | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/input/input.go b/input/input.go index 6835f82c8e..088b20401f 100644 --- a/input/input.go +++ b/input/input.go @@ -19,7 +19,7 @@ var EmptyOutPoint wire.OutPoint // construct a valid input within a sweeping transaction to sweep this // lingering UTXO. type Input interface { - // Outpoint returns the reference to the output being spent, used to + // OutPoint returns the reference to the output being spent, used to // construct the corresponding transaction input. OutPoint() wire.OutPoint diff --git a/input/mocks.go b/input/mocks.go index c2af637eda..bbd4550c5f 100644 --- a/input/mocks.go +++ b/input/mocks.go @@ -24,7 +24,7 @@ type MockInput struct { // Compile time assertion that MockInput implements Input. var _ Input = (*MockInput)(nil) -// Outpoint returns the reference to the output being spent, used to construct +// OutPoint returns the reference to the output being spent, used to construct // the corresponding transaction input. func (m *MockInput) OutPoint() wire.OutPoint { args := m.Called() diff --git a/sweep/walletsweep.go b/sweep/walletsweep.go index da5e56dee0..81458fbfb0 100644 --- a/sweep/walletsweep.go +++ b/sweep/walletsweep.go @@ -152,8 +152,9 @@ func (f FeeEstimateInfo) Estimate(estimator chainfee.Estimator, // UtxoSource is an interface that allows a caller to access a source of UTXOs // to use when crafting sweep transactions. type UtxoSource interface { - // ListUnspentWitness returns all UTXOs from the default wallet account - // that have between minConfs and maxConfs number of confirmations. + // ListUnspentWitnessFromDefaultAccount returns all UTXOs from the + // default wallet account that have between minConfs and maxConfs + // number of confirmations. ListUnspentWitnessFromDefaultAccount(minConfs, maxConfs int32) ( []*lnwallet.Utxo, error) } diff --git a/watchtower/wtwire/message.go b/watchtower/wtwire/message.go index 5bc8c75ce8..0739f20630 100644 --- a/watchtower/wtwire/message.go +++ b/watchtower/wtwire/message.go @@ -92,7 +92,7 @@ type Message interface { // be encoded. MsgType() MessageType - // MaxMessagePayload is the maximum serialized length that a particular + // MaxPayloadLength is the maximum serialized length that a particular // message type can take. MaxPayloadLength(uint32) uint32 }