projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[invoice] Fix non-recoverable sig handling and bogus SI prefix err
[rust-lightning]
/
lightning-invoice
/
src
/
de.rs
diff --git
a/lightning-invoice/src/de.rs
b/lightning-invoice/src/de.rs
index 2ed356dafb8d3959b0c43cebed8ccdc161e69f39..ac7e7e835e08d07d3a7f4af38d590d48dc4f0f0b 100644
(file)
--- a/
lightning-invoice/src/de.rs
+++ b/
lightning-invoice/src/de.rs
@@
-77,7
+77,7
@@
mod hrp_sm {
} else if ['m', 'u', 'n', 'p'].contains(&read_symbol) {
Ok(States::ParseAmountSiPrefix)
} else {
} else if ['m', 'u', 'n', 'p'].contains(&read_symbol) {
Ok(States::ParseAmountSiPrefix)
} else {
- Err(super::ParseError::
MalformedHRP
)
+ Err(super::ParseError::
UnknownSiPrefix
)
}
},
States::ParseAmountSiPrefix => Err(super::ParseError::MalformedHRP),
}
},
States::ParseAmountSiPrefix => Err(super::ParseError::MalformedHRP),