scripts: add falsy classifications and fix multisig
This commit is contained in:
parent
5c53178c3c
commit
759bba5c21
3 changed files with 49 additions and 15 deletions
test
|
@ -32,6 +32,15 @@ describe('Scripts', function() {
|
|||
assert.equal(type, f.type)
|
||||
})
|
||||
})
|
||||
|
||||
fixtures.invalid.classify.forEach(function(f) {
|
||||
it('returns nonstandard for ' + f.description, function() {
|
||||
var script = Script.fromASM(f.scriptPubKey)
|
||||
var type = scripts.classifyOutput(script)
|
||||
|
||||
assert.equal(type, 'nonstandard')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('pubKey', function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue