Merge pull request #95 from freakotter/master

Solved p2pk ownership comparison in mtx
This commit is contained in:
Christopher Jeffrey (JJ) 2016-11-04 11:40:29 -07:00 committed by GitHub
commit 212c633d44

View File

@ -486,7 +486,7 @@ MTX.prototype.signVector = function signVector(prev, vector, sig, ring) {
// P2PK
if (prev.isPubkey()) {
// Make sure the pubkey is ours.
if (!utils.equal(ring.keyHash, prev.get(0)))
if (!utils.equal(ring.publicKey, prev.get(0)))
return false;
// Already signed.