From aeff443fcfe867ee38953707ae356788242c2d79 Mon Sep 17 00:00:00 2001 From: criciss Date: Sun, 3 May 2026 01:05:56 +0800 Subject: [PATCH] dex: fix some function names in comment Signed-off-by: criciss --- dex/networks/dcr/script.go | 4 ++-- dex/path.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dex/networks/dcr/script.go b/dex/networks/dcr/script.go index 6e93aeba1b..6cbc7e764f 100644 --- a/dex/networks/dcr/script.go +++ b/dex/networks/dcr/script.go @@ -1117,7 +1117,7 @@ func multisigScriptSize(nPub int64) uint64 { 1 // OP_ENDIF } -// PaymentMultisigRedeemSize returns the redeem tx size based on the number +// PaymentMultisigRedeemTxSize returns the redeem tx size based on the number // of signatures and pubkeys involved and the number recipients. func PaymentMultisigRedeemTxSize(nPub, nRequired, nRecipients int64) uint64 { redeemScriptSize := multisigScriptSize(nPub) @@ -1132,7 +1132,7 @@ func PaymentMultisigRedeemTxSize(nPub, nRequired, nRecipients int64) uint64 { return MsgTxOverhead + inputSize + uint64(nRecipients)*P2PKHOutputSize } -// PaymentMultisigRefundSize returns the redeem tx size based on the number +// PaymentMultisigRefundTxSize returns the redeem tx size based on the number // of signatures and pubkeys involved and the number recipients. func PaymentMultisigRefundTxSize(nPub int64) uint64 { redeemScriptSize := multisigScriptSize(nPub) diff --git a/dex/path.go b/dex/path.go index 21ac032649..dff280eebd 100644 --- a/dex/path.go +++ b/dex/path.go @@ -65,7 +65,7 @@ func CleanAndExpandPath(path string) string { return filepath.Join(homeDir, path) } -// FilesExists reports whether the named file or directory exists. +// FileExists reports whether the named file or directory exists. func FileExists(name string) bool { _, err := os.Stat(name) return !os.IsNotExist(err)