Replace Timestamp with chrono::DateTime<Utc>
This commit is contained in:
parent
fa8b5290b5
commit
7fb71a7a9e
|
@ -8,3 +8,4 @@ edition = "2018"
|
|||
|
||||
[dependencies]
|
||||
zebra-chain = { path = "../zebra-chain" }
|
||||
chrono = "0.4"
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
use std::net::{SocketAddr};
|
||||
|
||||
use chrono::{DateTime, Utc};
|
||||
|
||||
use zebra_chain;
|
||||
|
||||
/// A Bitcoin-like network message for the Zcash protocol.
|
||||
|
@ -43,7 +45,7 @@ pub enum Message {
|
|||
services: Services,
|
||||
|
||||
/// The time when the version message was sent.
|
||||
timestamp: Timestamp,
|
||||
timestamp: DateTime<Utc>,
|
||||
|
||||
/// The network address of the node receiving this message.
|
||||
address_receiving: NetworkAddress,
|
||||
|
@ -216,9 +218,6 @@ pub struct Version(pub u32);
|
|||
// away in the future in favor of that.
|
||||
pub struct Services(pub u64);
|
||||
|
||||
/// Standard UNIX timestamp in seconds since the Epoch.
|
||||
pub struct Timestamp(pub i64);
|
||||
|
||||
/// A network address but with some extra flavor.
|
||||
///
|
||||
/// When a network address is needed somewhere, this structure is
|
||||
|
|
Loading…
Reference in New Issue