address.cpp: Don't special-case BTS prefix

This commit is contained in:
theoreticalbts 2015-10-15 17:53:19 -04:00
parent 6b469528a1
commit 704f943181

View file

@ -39,10 +39,6 @@ namespace graphene {
bool address::is_valid( const std::string& base58str, const std::string& prefix )
{
// TODO: This is temporary for testing
if( prefix == GRAPHENE_ADDRESS_PREFIX && is_valid( base58str, "BTS" ) )
return true;
const size_t prefix_len = prefix.size();
if( base58str.size() <= prefix_len )
return false;