-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Closed
Description
Openssl removed ripemd160, see openssl/openssl#16994
Thus, our tests fail. See below for excerpt.
Not sure how to fix this, so leaving an issue here.
Running Unit Tests for Test Framework Modules
..........
----------------------------------------------------------------------
Ran 10 tests in 0.812s
OK
4/225 - feature_block.py failed, Duration: 0 s
stdout:
stderr:
Traceback (most recent call last):
File "/usr/lib/python3.9/hashlib.py", line 160, in __hash_new
return _hashlib.new(name, data, **kwargs)
ValueError: [digital envelope routines] initialization error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bitcoin-core/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/feature_block.py", line 54, in <module>
from data import invalid_txs
File "/bitcoin-core/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/data/invalid_txs.py", line 57, in <module>
basic_p2sh = script_to_p2sh_script(CScript([OP_0]))
File "/bitcoin-core/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/script_util.py", line 74, in script_to_p2sh_script
return scripthash_to_p2sh_script(hash160(script))
File "/bitcoin-core/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/script.py", line 35, in hash160
return hashlib.new('ripemd160', sha256(s)).digest()
File "/usr/lib/python3.9/hashlib.py", line 166, in __hash_new
return __get_builtin_constructor(name)(data)
File "/usr/lib/python3.9/hashlib.py", line 123, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type ripemd160
TEST | STATUS | DURATION
wallet_backup.py --descriptors | ✓ Passed | 109 s
wallet_hd.py --descriptors | ✓ Passed | 92 s
wallet_hd.py --legacy-wallet | ✓ Passed | 125 s
feature_block.py | ✖ Failed | 0 s
ALL | ✖ Failed | 326 s (accumulated)
Runtime: 125 s