mtx: fix scriptVector for p2pk. fixes #93.
This commit is contained in:
parent
f1b266e53b
commit
e68538633d
@ -349,7 +349,7 @@ MTX.prototype.scriptVector = function scriptVector(prev, vector, ring) {
|
|||||||
|
|
||||||
// P2PK
|
// P2PK
|
||||||
if (prev.isPubkey()) {
|
if (prev.isPubkey()) {
|
||||||
if (!utils.equal(prev.get(1), ring.publicKey))
|
if (!utils.equal(prev.get(0), ring.publicKey))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
vector.set(0, opcodes.OP_0);
|
vector.set(0, opcodes.OP_0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user