Skip to content

Commit

Permalink
chore: fix some function names (decred#2911)
Browse files Browse the repository at this point in the history
Signed-off-by: rubyisrust <[email protected]>
  • Loading branch information
rubyisrust authored Aug 12, 2024
1 parent 31a4a0e commit 900ea3e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/asset/bch/bch.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func NewWallet(cfg *asset.WalletConfig, logger dex.Logger, network dex.Network)
return nil, fmt.Errorf("wallet type %q not known", cfg.Type)
}

// rawTxSigner signs the transaction using Bitcoin Cash's custom signature
// rawTxInSigner signs the transaction using Bitcoin Cash's custom signature
// hash and signing algorithm.
func rawTxInSigner(btcTx *wire.MsgTx, idx int, subScript []byte, hashType txscript.SigHashType,
btcKey *btcec.PrivateKey, vals []int64, _ [][]byte) ([]byte, error) {
Expand Down
2 changes: 1 addition & 1 deletion client/asset/btc/btc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,7 @@ func (btc *baseWallet) getTxFee(tx *wire.MsgTx) (uint64, error) {
return in - out, nil
}

// sizeAndFeesOfConfirmedTxs returns the total size in vBytes and the total
// sizeAndFeesOfUnconfirmedTxs returns the total size in vBytes and the total
// fees spent by the unconfirmed transactions in txs.
func (btc *baseWallet) sizeAndFeesOfUnconfirmedTxs(txs []*GetTransactionResult) (size uint64, fees uint64, err error) {
for _, tx := range txs {
Expand Down
2 changes: 1 addition & 1 deletion client/asset/btc/coin_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func SumUTXOs(set []*CompositeUTXO) (tot uint64) {
return tot
}

// subsetWithLeastSumGreaterThan attempts to select the subset of UTXOs with
// subsetWithLeastOverFund attempts to select the subset of UTXOs with
// the smallest total value that is enough. It does this by making
// 1000 random selections and returning the best one. Each selection
// involves two passes over the UTXOs. The first pass randomly selects
Expand Down
2 changes: 1 addition & 1 deletion client/asset/dcr/coin_selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func sumUTXOs(set []*compositeUTXO) (tot uint64) {
return tot
}

// subsetWithLeastSumGreaterThan attempts to select the subset of UTXOs with
// subsetWithLeastOverFund attempts to select the subset of UTXOs with
// the smallest total value greater than amt. It does this by making
// 1000 random selections and returning the best one. Each selection
// involves two passes over the UTXOs. The first pass randomly selects
Expand Down

0 comments on commit 900ea3e

Please sign in to comment.