projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't hold `per_peer_state` lock during chain monitor update
[rust-lightning]
/
lightning
/
src
/
util
/
ser.rs
diff --git
a/lightning/src/util/ser.rs
b/lightning/src/util/ser.rs
index 3de03ea5a0d5efd93b4c3a22e4d88845656dbf23..5ff6dc86a0bf91d20df6fb110f67185f8cd5f355 100644
(file)
--- a/
lightning/src/util/ser.rs
+++ b/
lightning/src/util/ser.rs
@@
-10,11
+10,11
@@
//! A very simple serialization framework which is used to serialize/deserialize messages as well
//! as ChannelsManagers and ChannelMonitors.
//! A very simple serialization framework which is used to serialize/deserialize messages as well
//! as ChannelsManagers and ChannelMonitors.
-use prelude::*;
-use io::{self, Read, Write};
-use io_extras::{copy, sink};
+use
crate::
prelude::*;
+use
crate::
io::{self, Read, Write};
+use
crate::
io_extras::{copy, sink};
use core::hash::Hash;
use core::hash::Hash;
-use sync::Mutex;
+use
crate::
sync::Mutex;
use core::cmp;
use core::convert::TryFrom;
use core::ops::Deref;
use core::cmp;
use core::convert::TryFrom;
use core::ops::Deref;
@@
-30,10
+30,10
@@
use bitcoin::hashes::sha256d::Hash as Sha256dHash;
use bitcoin::hash_types::{Txid, BlockHash};
use core::marker::Sized;
use core::time::Duration;
use bitcoin::hash_types::{Txid, BlockHash};
use core::marker::Sized;
use core::time::Duration;
-use ln::msgs::DecodeError;
-use ln::{PaymentPreimage, PaymentHash, PaymentSecret};
+use
crate::
ln::msgs::DecodeError;
+use
crate::
ln::{PaymentPreimage, PaymentHash, PaymentSecret};
-use util::byte_utils::{be48_to_array, slice_to_be48};
+use
crate::
util::byte_utils::{be48_to_array, slice_to_be48};
/// serialization buffer size
pub const MAX_BUF_SIZE: usize = 64 * 1024;
/// serialization buffer size
pub const MAX_BUF_SIZE: usize = 64 * 1024;
@@
-1062,7
+1062,7
@@
impl Readable for Duration {
#[cfg(test)]
mod tests {
use core::convert::TryFrom;
#[cfg(test)]
mod tests {
use core::convert::TryFrom;
- use util::ser::{Readable, Hostname, Writeable};
+ use
crate::
util::ser::{Readable, Hostname, Writeable};
#[test]
fn hostname_conversion() {
#[test]
fn hostname_conversion() {