Skip to content

Commit

Permalink
Merge PR #824 from 'Nathanwoodburn/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Jul 14, 2023
2 parents ed27e7f + 14d2fd2 commit 15f74cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/node/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2984,17 +2984,21 @@ class RPC extends RPCBase {
hex: undefined,
type: Script.typesByVal[type],
reqSigs: 1,
totalSigs: 1,
p2sh: undefined
};

if (hex)
json.hex = script.toJSON();

const [m] = script.getMultisig();
const [m, n] = script.getMultisig();

if (m !== -1)
json.reqSigs = m;

if (n !== -1)
json.totalSigs = n;

return json;
}

Expand Down

0 comments on commit 15f74cc

Please sign in to comment.