From 1b102c30846856cea333f95332d9faf5fddd470f Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 24 Nov 2023 15:38:18 +0000 Subject: [PATCH] wire-mix: fix comment --- wire/msgmixpairreq.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wire/msgmixpairreq.go b/wire/msgmixpairreq.go index 8a46240407..b8d091cbe2 100644 --- a/wire/msgmixpairreq.go +++ b/wire/msgmixpairreq.go @@ -213,8 +213,9 @@ func (msg *MsgMixPairReq) hashEncode(h hash.Hash, pver uint32) { // the signature. This allows code reuse between message serialization, and // signing and verifying these message contents. // -// When hashing is true, w is a hash.Hash (writes never error) and no errors -// will be returned for invalid message construction. +// If op is the empty string (when the message is being hashed), w is a +// hash.Hash (writes never error) and no errors will be returned for invalid +// message construction. func (msg *MsgMixPairReq) writeMessageNoSignature(op string, w io.Writer, pver uint32) error { hashing := op == ""