txb/tests: test solo SIGHASH_ALL, support existing SIGHASH_NONE

This commit is contained in:
Daniel Cousens 2018-09-26 14:39:55 +10:00
parent ed1c1a5661
commit 2223e6170e
2 changed files with 22 additions and 3 deletions

View file

@ -2359,12 +2359,21 @@
]
},
{
"description": "Transaction w/ no outputs",
"description": "Transaction w/ no outputs (but 1 SIGHASH_ALL)",
"exception": "Transaction needs outputs",
"inputs": [
{
"txId": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"vout": 0,
"signs": [
{
"keyPair": "KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn"
}
]
},
{
"txId": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"vout": 1,
"signs": [
{
"keyPair": "KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn",