Merge pull request #5295

2b10f22a mnemonics: fix half length seed to bytes conversion (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-04-01 17:23:25 +02:00
commit 89fb0e3cd6
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -340,9 +340,7 @@ namespace crypto
const size_t expected = len * 3 / 32; const size_t expected = len * 3 / 32;
if (seed.size() == expected/2) if (seed.size() == expected/2)
{ {
dst += ' '; // if electrum 12-word seed, duplicate dst.append(dst.data(), dst.size()); // if electrum 12-word seed, duplicate
dst += dst; // if electrum 12-word seed, duplicate
dst.pop_back(); // trailing space
} }
} }