From cb9566911c902acd3fb613bc687a339688ae0a31 Mon Sep 17 00:00:00 2001 From: Alex Yocom-Piatt Date: Mon, 7 Mar 2016 13:39:50 -0600 Subject: [PATCH] Update comment to match code --- txscript/script.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/txscript/script.go b/txscript/script.go index ea82bc8e..c523e231 100644 --- a/txscript/script.go +++ b/txscript/script.go @@ -381,9 +381,9 @@ func calcSignatureHash(script []parsedOpcode, hashType SigHashType, } // The final hash (message to sign) is the hash of: - // 1) hash of the prefix || - // 2) hash of the witness for signing || - // 3) the hash type (encoded as a 4-byte little-endian value) + // 1) the hash type (encoded as a 4-byte little-endian value) || + // 2) hash of the prefix || + // 3) hash of the witness for signing var wbuf bytes.Buffer binary.Write(&wbuf, binary.LittleEndian, uint32(hashType))