diff options
author | Oran Juice <oranjuices@hotmail.com> | 2014-09-30 23:53:02 +0530 |
---|---|---|
committer | Oran Juice <oranjuices@hotmail.com> | 2014-09-30 23:53:02 +0530 |
commit | 423bf69dca3892806d5b80e88f4348a4adce3612 (patch) | |
tree | 91887d9f618538cfea3a048ca7b18d5c1f5991e5 /src/mnemonics/electrum-words.cpp | |
parent | Is forgiving of spelling mistakes beyond the 1st 4 characters. (diff) | |
download | monero-423bf69dca3892806d5b80e88f4348a4adce3612.tar.xz |
Added attribution to Electrum for their word-lists
Diffstat (limited to 'src/mnemonics/electrum-words.cpp')
-rw-r--r-- | src/mnemonics/electrum-words.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mnemonics/electrum-words.cpp b/src/mnemonics/electrum-words.cpp index d48df1436..d1cef443c 100644 --- a/src/mnemonics/electrum-words.cpp +++ b/src/mnemonics/electrum-words.cpp @@ -94,6 +94,11 @@ namespace std::string word; while (input_stream >> word) { + if (word.length() == 0 || word[0] == '#') + { + // Skip empty and comment lines + continue; + } words_array.push_back(word); if (has_checksum) { |