Merge pull request #405 from stamparm/master

Enforcing Base58 check on Litecoin and Dash addresses
This commit is contained in:
Thirion Aurélien 2019-09-25 09:39:09 +02:00 committed by GitHub
commit 79cfba389d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ def check_base58_address(bc):
return False
def verify_cryptocurrency_address(cryptocurrency_type, cryptocurrency_address):
if cryptocurrency_type == 'bitcoin':
if cryptocurrency_type in ('bitcoin', 'litecoin', 'dash'):
return check_base58_address(cryptocurrency_address)
else:
return True