Browse Source

less strict on inputs

addLowRGrinding
Daniel Cousens 6 years ago
parent
commit
8197f9d704
  1. 12
      test/fixtures/p2pk.json
  2. 2
      test/payments.js

12
test/fixtures/p2pk.json

@ -66,18 +66,6 @@
"exception": "Not enough data",
"arguments": {}
},
{
"exception": "Not enough data",
"arguments": {
"input": "300602010002010001"
}
},
{
"exception": "Not enough data",
"arguments": {
"signature": "300602010002010001"
}
},
{
"description": "Non-canonical signature",
"exception": "Expected property \"signature\" of type \\?isCanonicalScriptSignature, got Buffer",

2
test/payments.js

@ -26,7 +26,7 @@ const u = require('./payments.utils')
})
fixtures.invalid.forEach(function (f) {
it('throws ' + (f.description || f.exception), function () {
it('throws ' + f.exception + (f.description ? ('for ' + f.description) : ''), function () {
const args = u.preform(f.arguments)
assert.throws(function () {

Loading…
Cancel
Save