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 17, 2023
1 parent 92c7c35 commit 8d529cc
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 @@ -2978,17 +2978,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 8d529cc

Please sign in to comment.