Skip to content

Commit

Permalink
Don't leak the local time and default services in the handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
vasild authored and alfred-hodler committed May 23, 2024
1 parent 6cb4168 commit cb75581
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pushtx/src/p2p/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ pub fn client(socks_proxy: Option<SocketAddr>, network: crate::Network) -> Clien
network: network.into(),
join_handle,
our_version: VersionMessage {
version: 70015,
version: 70016,
services: bitcoin::p2p::ServiceFlags::NONE,
timestamp: crate::posix_time() as i64,
timestamp: 0,
receiver: bitcoin::p2p::Address {
services: bitcoin::p2p::ServiceFlags::default(),
services: bitcoin::p2p::ServiceFlags::NONE,
address: [0; 8],
port: 8333,
port: 0,
},
sender: bitcoin::p2p::Address {
services: bitcoin::p2p::ServiceFlags::default(),
services: bitcoin::p2p::ServiceFlags::NONE,
address: [0; 8],
port: 0,
},
nonce: fastrand::u64(..),
user_agent: "".to_string(),
user_agent: "/pynode:0.0.1/".to_string(),
start_height: 0,
relay: false,
},
Expand Down

0 comments on commit cb75581

Please sign in to comment.