diff options
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) { |