mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Allow seeds to be specified as hex.
This commit is contained in:
@@ -754,6 +754,7 @@ bool RippleAddress::setSeedGeneric(const std::string& strText)
|
||||
{
|
||||
RippleAddress naTemp;
|
||||
bool bResult = true;
|
||||
uint128 uSeed;
|
||||
|
||||
if (strText.empty()
|
||||
|| naTemp.setAccountID(strText)
|
||||
@@ -764,6 +765,10 @@ bool RippleAddress::setSeedGeneric(const std::string& strText)
|
||||
{
|
||||
bResult = false;
|
||||
}
|
||||
else if (strText.length() == 32 && uSeed.SetHex(strText, true))
|
||||
{
|
||||
setSeed(uSeed);
|
||||
}
|
||||
else if (setSeed(strText))
|
||||
{
|
||||
// std::cerr << "Recognized seed." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user