diff --git a/client/asset/bch/bch.go b/client/asset/bch/bch.go index 8a708d992d..502653d831 100644 --- a/client/asset/bch/bch.go +++ b/client/asset/bch/bch.go @@ -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) { diff --git a/client/asset/btc/btc.go b/client/asset/btc/btc.go index e289a83d74..63b0e806ee 100644 --- a/client/asset/btc/btc.go +++ b/client/asset/btc/btc.go @@ -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 { diff --git a/client/asset/btc/coin_selection.go b/client/asset/btc/coin_selection.go index 3ba8f7de3d..ef7da03921 100644 --- a/client/asset/btc/coin_selection.go +++ b/client/asset/btc/coin_selection.go @@ -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 diff --git a/client/asset/dcr/coin_selection.go b/client/asset/dcr/coin_selection.go index 589cd33445..1ca465e7fa 100644 --- a/client/asset/dcr/coin_selection.go +++ b/client/asset/dcr/coin_selection.go @@ -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