Script: remove sort requirement for multisig
This commit is contained in:
parent
de343b2093
commit
da36003d09
1 changed files with 0 additions and 1 deletions
|
@ -295,7 +295,6 @@ Script.createP2SHScriptPubKey = function(hash) {
|
||||||
// m [pubKeys ...] n OP_CHECKMULTISIG
|
// m [pubKeys ...] n OP_CHECKMULTISIG
|
||||||
Script.createMultisigScriptPubKey = function(m, pubKeys) {
|
Script.createMultisigScriptPubKey = function(m, pubKeys) {
|
||||||
var script = new Script()
|
var script = new Script()
|
||||||
pubKeys = pubKeys.sort()
|
|
||||||
|
|
||||||
script.writeOp(Opcode.map.OP_1 + m - 1)
|
script.writeOp(Opcode.map.OP_1 + m - 1)
|
||||||
for (var i = 0; i < pubKeys.length; ++i) {
|
for (var i = 0; i < pubKeys.length; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue