mnemonics: fix half length seed to bytes conversion

This commit is contained in:
moneromooo-monero 2019-03-15 11:04:58 +00:00
parent 1d1a02e9f9
commit 2b10f22ae6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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
} }
} }