git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c40e3e7
)
Use SequenceEqual to compare stack items.
author
CryptoManiac
<balthazar@yandex.ru>
Sun, 23 Aug 2015 02:13:50 +0000 (
05:13
+0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Sun, 23 Aug 2015 02:13:50 +0000 (
05:13
+0300)
Novacoin/ScriptCode.cs
patch
|
blob
|
history
diff --git
a/Novacoin/ScriptCode.cs
b/Novacoin/ScriptCode.cs
index
b85850b
..
21fbf67
100644
(file)
--- a/
Novacoin/ScriptCode.cs
+++ b/
Novacoin/ScriptCode.cs
@@
-1327,7
+1327,7
@@
namespace Novacoin
IEnumerable<byte> vch1 = stacktop(ref stack, -2);
IEnumerable<byte> 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)