From 3d5f1850aeddeb6121e0489bb9149262f11c99af Mon Sep 17 00:00:00 2001 From: Calvin Kim Date: Fri, 2 Feb 2024 17:01:15 +0900 Subject: [PATCH] txscript: fix bug by casting to uint32 --- txscript/opcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txscript/opcode.go b/txscript/opcode.go index f5aa200b..944666eb 100644 --- a/txscript/opcode.go +++ b/txscript/opcode.go @@ -1171,7 +1171,7 @@ func opcodeCheckSequenceVerify(op *opcode, data []byte, vm *Engine) error { // Transaction version numbers not high enough to trigger CSV rules must // fail. - if vm.tx.Version < 2 { + if uint32(vm.tx.Version) < 2 { str := fmt.Sprintf("invalid transaction version: %d", vm.tx.Version) return scriptError(ErrUnsatisfiedLockTime, str)