mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
mnemonics: ignore multiple whitespace between words
This commit is contained in:
parent
9ed496bbc5
commit
5fce581ce3
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user