aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/electrum-words.cpp
diff options
context:
space:
mode:
authorOran Juice <oranjuices@hotmail.com>2014-09-30 23:53:02 +0530
committerOran Juice <oranjuices@hotmail.com>2014-09-30 23:53:02 +0530
commit423bf69dca3892806d5b80e88f4348a4adce3612 (patch)
tree91887d9f618538cfea3a048ca7b18d5c1f5991e5 /src/mnemonics/electrum-words.cpp
parentIs forgiving of spelling mistakes beyond the 1st 4 characters. (diff)
downloadmonero-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.cpp5
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)
{