mnemonics: ignore multiple whitespace between words

This commit is contained in:
moneromooo-monero 2017-04-16 11:29:21 +01:00
parent 9ed496bbc5
commit 5fce581ce3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -240,7 +240,7 @@ namespace crypto
std::vector<std::string> seed;
boost::algorithm::trim(words);
boost::split(seed, words, boost::is_any_of(" "));
boost::split(seed, words, boost::is_any_of(" "), boost::token_compress_on);
// error on non-compliant word list
if (seed.size() != seed_length/2 && seed.size() != seed_length &&