unit_tests.py tx_deserialize: support v22.0.0 test vectors
This commit is contained in:
parent
350c600bb3
commit
20b45c3b84
1 changed files with 5 additions and 4 deletions
|
|
@ -64,10 +64,11 @@ class unit_test(object):
|
|||
# outputs
|
||||
a,b = d['vout'],dt['txouts']
|
||||
for i in range(len(a)):
|
||||
A = a[i]['scriptPubKey']['addresses'][0]
|
||||
B = b[i]['address']
|
||||
fs = 'address of output {} does not match\nA: {}\nB: {}'
|
||||
assert A == B, fs.format(i,A,B)
|
||||
if 'addresses' in a[i]['scriptPubKey']:
|
||||
A = a[i]['scriptPubKey']['addresses'][0]
|
||||
B = b[i]['address']
|
||||
fs = 'address of output {} does not match\nA: {}\nB: {}'
|
||||
assert A == B, fs.format(i,A,B)
|
||||
|
||||
A = a[i]['value']
|
||||
B = b[i]['amount']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue