Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactored loading wordlist from pak

linting and cleanup

Added note for mobile to not check for legacy wallet keys
  • Loading branch information
Jason Sadler committed Oct 1, 2018
1 parent 828f074 commit c140d2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bat_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -944,9 +944,12 @@ bool BatClient::loadNicewareList(const std::string& data) {
void BatClient::recoverWallet(const std::string& passPhrase) {
size_t written = 0;
std::vector<unsigned char> newSeed;
// TODO(jasonrsadler): Mobile doesn't have rewards so the size() == 16 should
// just result in invalid.
if (braveledger_bat_helper::split(passPhrase,
WALLET_PASSPHRASE_DELIM).size() == 16)
{

// use niceware for legacy wallet passphrases
ledger_->SetPendingPhrase(passPhrase);
ledger_->LoadNicewareList();
Expand Down

0 comments on commit c140d2f

Please sign in to comment.