Separate testnet address prefix

This commit is contained in:
Zachary Michaels
2014-09-09 10:58:53 -04:00
committed by Riccardo Spagni
parent ee1bacc64f
commit d03308734b
21 changed files with 126 additions and 69 deletions
+2 -2
View File
@@ -93,10 +93,10 @@ DISABLE_VS_WARNINGS(4244 4345)
return m_keys;
}
//-----------------------------------------------------------------
std::string account_base::get_public_address_str()
std::string account_base::get_public_address_str(bool testnet)
{
//TODO: change this code into base 58
return get_account_address_as_str(m_keys.m_account_address);
return get_account_address_as_str(testnet, m_keys.m_account_address);
}
//-----------------------------------------------------------------
}