Skip to content

Commit 079c38f

Browse files
authored
Merge pull request #16 from 2140-dev/8-29-nonce
Return `Nonce` in `FeelerData`
2 parents 7bff121 + 9e9e38a commit 079c38f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/handshake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ impl ConnectionConfig {
171171
services: version.services,
172172
net_time_difference,
173173
reported_height: version.start_height,
174+
nonce,
174175
};
175176
let handshake = InitializedHandshake {
176177
feeler,

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ pub struct FeelerData {
3030
pub net_time_difference: i64,
3131
/// The reported height of their block chain.
3232
pub reported_height: i32,
33+
/// The nonce used to create this connection.
34+
pub nonce: u64,
3335
}
3436

3537
/// The peer's preferences during this connection. These are updated automatically as the peer

0 commit comments

Comments
 (0)