Skip to content

Commit

Permalink
Merge pull request #9301 from chuangjinglu/master
Browse files Browse the repository at this point in the history
multi: fix some function names in interface comment
  • Loading branch information
guggero authored Nov 25, 2024
2 parents 94f7ed4 + bcfd8d5 commit 7e8dc2d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion input/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 3 additions & 2 deletions sweep/walletsweep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion watchtower/wtwire/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7e8dc2d

Please sign in to comment.