From: CryptoManiac Date: Sun, 23 Aug 2015 02:13:50 +0000 (+0300) Subject: Use SequenceEqual to compare stack items. X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=48a67afa0069ca67a43e176c10b469ddf3323483;hp=c40e3e74f9671499d75b7f8034550ab8bc51ec55;p=NovacoinLibrary.git Use SequenceEqual to compare stack items. --- diff --git a/Novacoin/ScriptCode.cs b/Novacoin/ScriptCode.cs index b85850b..21fbf67 100644 --- a/Novacoin/ScriptCode.cs +++ b/Novacoin/ScriptCode.cs @@ -1327,7 +1327,7 @@ namespace Novacoin IEnumerable vch1 = stacktop(ref stack, -2); IEnumerable vch2 = stacktop(ref stack, -1); - bool fEqual = (vch1 == vch2); + bool fEqual = (vch1.SequenceEqual(vch2)); // OP_NOTEQUAL is disabled because it would be too easy to say // something like n != 1 and have some wiseguy pass in 1 with extra // zero bytes after it (numerically, 0x01 == 0x0001 == 0x000001)