add payments p2ms, p2pk, p2pkh, p2sh, p2wpkh, p2wsh

This commit is contained in:
Daniel Cousens 2018-06-05 17:24:47 +10:00
commit f9a739e1db
18 changed files with 2696 additions and 2 deletions

View file

@ -98,11 +98,11 @@ function decompile (buffer) {
if ((opcode > OPS.OP_0) && (opcode <= OPS.OP_PUSHDATA4)) {
const d = pushdata.decode(buffer, i)
// did reading a pushDataInt fail? empty script
// did reading a pushDataInt fail?
if (d === null) return null
i += d.size
// attempt to read too much data? empty script
// attempt to read too much data?
if (i + d.number > buffer.length) return null
const data = buffer.slice(i, i + d.number)