aboutsummaryrefslogtreecommitdiff
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
parentIs forgiving of spelling mistakes beyond the 1st 4 characters. (diff)
downloadmonero-423bf69dca3892806d5b80e88f4348a4adce3612.tar.xz
Added attribution to Electrum for their word-lists
-rw-r--r--src/mnemonics/electrum-words.cpp5
-rw-r--r--src/mnemonics/wordlists/languages/english1
-rw-r--r--src/mnemonics/wordlists/languages/japanese1
-rw-r--r--src/mnemonics/wordlists/languages/spanish1
4 files changed, 8 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)
{
diff --git a/src/mnemonics/wordlists/languages/english b/src/mnemonics/wordlists/languages/english
index 942040ed5..714f66dac 100644
--- a/src/mnemonics/wordlists/languages/english
+++ b/src/mnemonics/wordlists/languages/english
@@ -1,3 +1,4 @@
+# Originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
abandon
ability
able
diff --git a/src/mnemonics/wordlists/languages/japanese b/src/mnemonics/wordlists/languages/japanese
index aa7673fce..cb28b89d8 100644
--- a/src/mnemonics/wordlists/languages/japanese
+++ b/src/mnemonics/wordlists/languages/japanese
@@ -1,3 +1,4 @@
+# Originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
あい
あいこくしん
あう
diff --git a/src/mnemonics/wordlists/languages/spanish b/src/mnemonics/wordlists/languages/spanish
index d0900c2c7..29f5b3a73 100644
--- a/src/mnemonics/wordlists/languages/spanish
+++ b/src/mnemonics/wordlists/languages/spanish
@@ -1,3 +1,4 @@
+# Originally created as part of the Electrum project, Copyright (C) 2014 Thomas Voegtlin
ábaco
abdomen
abeja