We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2701bc5 commit bfc9592Copy full SHA for bfc9592
lightning-rapid-gossip-sync/src/lib.rs
@@ -92,12 +92,18 @@ pub enum GraphSyncError {
92
LightningError(LightningError),
93
}
94
95
-impl From<lightning::io::Error> for GraphSyncError {
96
- fn from(error: lightning::io::Error) -> Self {
+impl From<io::Error> for GraphSyncError {
+ fn from(error: io::Error) -> Self {
97
Self::DecodeError(DecodeError::Io(error.kind()))
98
99
100
101
+impl From<bitcoin::secp256k1::Error> for GraphSyncError {
102
+ fn from(_: bitcoin::secp256k1::Error) -> Self {
103
+ Self::DecodeError(DecodeError::InvalidValue)
104
+ }
105
+}
106
+
107
impl From<DecodeError> for GraphSyncError {
108
fn from(error: DecodeError) -> Self {
109
Self::DecodeError(error)
0 commit comments