mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove wallet_accounts and generator maps (RIPD-804):
* Remove the deprecated wallet_accounts command. * Remove dead code for generator maps. * Remove the help for the obsolete wallet_add and wallet_claim commands (which have already been removed).
This commit is contained in:
@@ -60,30 +60,10 @@ Json::Value accountFromString (
|
||||
|
||||
// We allow the use of the seeds to access #0.
|
||||
// This is poor practice and merely for debugging convenience.
|
||||
RippleAddress naRegular0Public;
|
||||
RippleAddress naRegular0Private;
|
||||
|
||||
auto naGenerator = RippleAddress::createGeneratorPublic (naSeed);
|
||||
|
||||
naRegular0Public.setAccountPublic (naGenerator, 0);
|
||||
naRegular0Private.setAccountPrivate (naGenerator, naSeed, 0);
|
||||
|
||||
SLE::pointer sleGen = netOps.getGenerator (
|
||||
lrLedger, naRegular0Public.getAccountID ());
|
||||
|
||||
if (sleGen)
|
||||
{
|
||||
// Found master public key.
|
||||
Blob vucCipher = sleGen->getFieldVL (sfGenerator);
|
||||
Blob vucMasterGenerator = naRegular0Private.accountPrivateDecrypt (
|
||||
naRegular0Public, vucCipher);
|
||||
|
||||
if (vucMasterGenerator.empty ())
|
||||
rpcError (rpcNO_GEN_DECRYPT);
|
||||
|
||||
naGenerator.setGenerator (vucMasterGenerator);
|
||||
}
|
||||
// Otherwise, if we didn't find a generator map, assume it is a master
|
||||
// Generator maps don't exist. Assume it is a master
|
||||
// generator.
|
||||
|
||||
bIndex = !iIndex;
|
||||
|
||||
Reference in New Issue
Block a user