]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Sort fields in size order
authorMatt Corallo <git@bluematt.me>
Tue, 21 Jul 2020 18:09:28 +0000 (14:09 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 21 Jul 2020 18:09:28 +0000 (14:09 -0400)
src/main.rs

index 316ca12b3b29b1405b3b863abc713838275e4cb3..96a74fd76c0501c025674bba0e8e04eeb0f8b4f2 100644 (file)
@@ -84,6 +84,7 @@ static ALLOC: MemoryLimitingAllocator = MemoryLimitingAllocator;
 
 struct PeerState {
        request: Arc<(u64, BlockHash, Block)>,
+       pong_nonce: u64,
        node_services: u64,
        msg: (String, bool),
        fail_reason: AddressState,
@@ -92,7 +93,6 @@ struct PeerState {
        recvd_pong: bool,
        recvd_addrs: bool,
        recvd_block: bool,
-       pong_nonce: u64,
 }
 
 pub fn scan_node(scan_time: Instant, node: SocketAddr, manual: bool) {