Some who shall remain nameless (whose first name starts with 'Art' and ends with 'hur') broke the unit tests.

This commit is contained in:
JoelKatz
2013-01-10 15:25:21 -08:00
parent 3a96e7c1b6
commit 83d1d3a122
2 changed files with 5 additions and 1 deletions

View File

@@ -58,7 +58,7 @@
#define DEFAULT_FEE_OPERATION 1
Config theConfig;
const char* ALPHABET;
const char* ALPHABET = NULL;
void Config::setup(const std::string& strConf, bool bTestNet, bool bQuiet)
{

View File

@@ -750,12 +750,16 @@ bool RippleAddress::setSeed(const std::string& strSeed)
return SetString(strSeed.c_str(), VER_FAMILY_SEED);
}
extern const char *ALPHABET;
bool RippleAddress::setSeedGeneric(const std::string& strText)
{
RippleAddress naTemp;
bool bResult = true;
uint128 uSeed;
ALPHABET = "rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz";
if (strText.empty()
|| naTemp.setAccountID(strText)
|| naTemp.setAccountPublic(strText)