Rustfmt
This commit is contained in:
parent
ed77aaacd9
commit
bae9347f6e
|
@ -19,7 +19,11 @@ use zebra_chain::{
|
||||||
|
|
||||||
use crate::{constants, types::Network};
|
use crate::{constants, types::Network};
|
||||||
|
|
||||||
use super::{inv::InventoryHash, message::{Message, RejectReason}, types::*};
|
use super::{
|
||||||
|
inv::InventoryHash,
|
||||||
|
message::{Message, RejectReason},
|
||||||
|
types::*,
|
||||||
|
};
|
||||||
|
|
||||||
/// The length of a Bitcoin message header.
|
/// The length of a Bitcoin message header.
|
||||||
const HEADER_LEN: usize = 24usize;
|
const HEADER_LEN: usize = 24usize;
|
||||||
|
@ -471,7 +475,7 @@ impl Codec {
|
||||||
_ => return Err(Error::Parse("invalid RejectReason value in ccode field")),
|
_ => return Err(Error::Parse("invalid RejectReason value in ccode field")),
|
||||||
},
|
},
|
||||||
reason: reader.read_string()?,
|
reason: reader.read_string()?,
|
||||||
data: Some(reader.read_32_bytes()?)
|
data: Some(reader.read_32_bytes()?),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue