X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Foffers%2Fparse.rs;h=3b9b04a5c06f8f00d898cec70aec46f6be600e3e;hb=df0120809f3453aa4cfc6ca4d34bbedcc823928d;hp=400cf51a2944d47cc0afd19e227acb3216242959;hpb=2e33acbd9c5ebd605829859a982822df6e0f1723;p=rust-lightning diff --git a/lightning/src/offers/parse.rs b/lightning/src/offers/parse.rs index 400cf51a..3b9b04a5 100644 --- a/lightning/src/offers/parse.rs +++ b/lightning/src/offers/parse.rs @@ -11,11 +11,11 @@ use bitcoin::bech32; use bitcoin::secp256k1; -use core::convert::TryFrom; use crate::io; use crate::ln::msgs::DecodeError; use crate::util::ser::SeekReadable; +#[allow(unused_imports)] use crate::prelude::*; #[cfg(not(fuzzing))] @@ -27,10 +27,10 @@ pub use sealed::Bech32Encode; mod sealed { use bitcoin::bech32; use bitcoin::bech32::{FromBase32, ToBase32}; - use core::convert::TryFrom; use core::fmt; use super::Bolt12ParseError; + #[allow(unused_imports)] use crate::prelude::*; /// Indicates a message can be encoded using bech32. @@ -183,6 +183,8 @@ pub enum Bolt12SemanticError { DuplicatePaymentId, /// Blinded paths were expected but were missing. MissingPaths, + /// Blinded paths were provided but were not expected. + UnexpectedPaths, /// The blinded payinfo given does not match the number of blinded path hops. InvalidPayInfo, /// An invoice creation time was expected but was missing.