Better test vectors for witness serialization (available on testnet)
This commit is contained in:
parent
c1d6a5c0d7
commit
035ec47868
2 changed files with 412 additions and 51 deletions
test
|
@ -46,6 +46,14 @@ describe('Transaction', function () {
|
|||
var id = f.id || f.hash
|
||||
var txHex = f.hex || f.txHex
|
||||
|
||||
if (f.hasWitness) {
|
||||
it('imports ' + f.description + ' (' + id + ') as witness', function () {
|
||||
var actual = Transaction.fromHex(f.witnessHex)
|
||||
|
||||
assert.strictEqual(actual.toHex(), f.witnessHex, actual.toHex())
|
||||
})
|
||||
}
|
||||
|
||||
it('imports ' + f.description + ' (' + id + ')', function () {
|
||||
var actual = Transaction.fromHex(txHex)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue