From 29dc54bf4031bea0be9214e78e35d414af5c6842 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Fri, 7 Oct 2022 16:03:00 +0200 Subject: [PATCH] Fix ringCT logic --- ringct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ringct.go b/ringct.go index d18f93e..0dcb347 100644 --- a/ringct.go +++ b/ringct.go @@ -326,7 +326,7 @@ func ParseRingCtSignature(buf io.Reader, nInputs, nOutputs, nMixin int) (result result = r return } - if r.sigType != RCTTypeFull || r.sigType != RCTTypeSimple { + if r.sigType != RCTTypeFull && r.sigType != RCTTypeSimple { err = fmt.Errorf("Bad sigType %d", r.sigType) } r.txFee, err = ReadVarInt(buf)