From ca123682cc9ece75e8f95ae0054101ba694a51a8 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 13 May 2019 10:08:38 +0100 Subject: [PATCH] Improve references to serializing and parsing int64 in CScripts --- parser/internal/bytestring/bytestring.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parser/internal/bytestring/bytestring.go b/parser/internal/bytestring/bytestring.go index f3e71da..13f4a70 100644 --- a/parser/internal/bytestring/bytestring.go +++ b/parser/internal/bytestring/bytestring.go @@ -203,7 +203,11 @@ func (s *String) ReadUint64(out *uint64) bool { // ReadScriptInt64 reads and interprets a Bitcoin-custom compact integer // encoding used for int64 numbers in scripts. // -// See https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/script.h#L363-L378 +// Serializer in zcashd: +// https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/script.h#L363-L378 +// +// Partial parser in zcashd: +// https://github.com/zcash/zcash/blob/4df60f4b334dd9aee5df3a481aee63f40b52654b/src/script/interpreter.cpp#L308-L335 func (s *String) ReadScriptInt64(num *int64) bool { // First byte is either an integer opcode, or the number of bytes in the // number.