]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add missing import path in ser macro
authorValentine Wallace <vwallace@protonmail.com>
Sun, 19 Feb 2023 23:32:06 +0000 (18:32 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 23 Feb 2023 22:04:04 +0000 (17:04 -0500)
lightning/src/ln/outbound_payment.rs
lightning/src/util/events.rs
lightning/src/util/ser_macros.rs

index 1d8d46a916a01cfdfa1cd783df48c7023a6c39e4..a851c8eda1267b1ff04140cf64c16748c604ed15 100644 (file)
@@ -17,7 +17,6 @@ use crate::chain::keysinterface::{EntropySource, NodeSigner, Recipient};
 use crate::ln::{PaymentHash, PaymentPreimage, PaymentSecret};
 use crate::ln::channelmanager::{ChannelDetails, HTLCSource, IDEMPOTENCY_TIMEOUT_TICKS, PaymentId};
 use crate::ln::channelmanager::MIN_FINAL_CLTV_EXPIRY_DELTA as LDK_DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA;
-use crate::ln::msgs::DecodeError;
 use crate::ln::onion_utils::HTLCFailReason;
 use crate::routing::router::{InFlightHtlcs, PaymentParameters, Route, RouteHop, RouteParameters, RoutePath, Router};
 use crate::util::errors::APIError;
index 4d68d01f6ed9301661145b222cf5b0aea2dba870..98239fd487a8e8bb5dfd99baf37b8f1353eda8c3 100644 (file)
@@ -21,7 +21,6 @@ use crate::ln::channelmanager::{InterceptId, PaymentId};
 use crate::ln::channel::FUNDING_CONF_DEADLINE_BLOCKS;
 use crate::ln::features::ChannelTypeFeatures;
 use crate::ln::msgs;
-use crate::ln::msgs::DecodeError;
 use crate::ln::{PaymentPreimage, PaymentHash, PaymentSecret};
 use crate::routing::gossip::NetworkUpdate;
 use crate::util::ser::{BigSize, FixedLengthReader, Writeable, Writer, MaybeReadable, Readable, WithoutLength, OptionDeserWrapper};
index 0aefaf383062b3d8ddcafbeb1465242ccf802e95..d509995b04f7b7f997a2d37ee60a8f6f73af7018 100644 (file)
@@ -949,7 +949,7 @@ macro_rules! impl_writeable_tlv_based_enum_upgradable {
                                                Ok(Some($st::$tuple_variant_name(Readable::read(reader)?)))
                                        }),*)*
                                        _ if id % 2 == 1 => Ok(None),
-                                       _ => Err(DecodeError::UnknownRequiredFeature),
+                                       _ => Err($crate::ln::msgs::DecodeError::UnknownRequiredFeature),
                                }
                        }
                }