mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-18 11:30:44 +01:00
qa: Remove duplicate hash160 implementation
`hash160` is defined in `test_framework.script`, so there is no need to define it here again.
This commit is contained in:
@@ -25,9 +25,6 @@ We use the testing framework in which we expect a particular answer from
|
|||||||
each test.
|
each test.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def hash160(s):
|
|
||||||
return hashlib.new('ripemd160', sha256(s)).digest()
|
|
||||||
|
|
||||||
# Use this class for tests that require behavior other than normal "mininode" behavior.
|
# Use this class for tests that require behavior other than normal "mininode" behavior.
|
||||||
# For now, it is used to serialize a bloated varint (b64).
|
# For now, it is used to serialize a bloated varint (b64).
|
||||||
class CBrokenBlock(CBlock):
|
class CBrokenBlock(CBlock):
|
||||||
|
|||||||
Reference in New Issue
Block a user