X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fconsensus%2Fconsensus_protocol.h;h=128ca2c162ed7d320cc7afdfcfb0fffb89baca42;hb=2032baa561c7fefbe2605f5d6b979a295a61637d;hp=c84aad2639eca6c828fd1d8f539e1e0b5a6aa4ec;hpb=f7eb3ed6bb391e9f87bcb3535bf04c4aeec2f7c1;p=oweals%2Fgnunet.git diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h index c84aad263..128ca2c16 100644 --- a/src/consensus/consensus_protocol.h +++ b/src/consensus/consensus_protocol.h @@ -4,7 +4,7 @@ GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 2, or (at your + by the Free Software Foundation; either version 3, or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but @@ -35,39 +35,20 @@ GNUNET_NETWORK_STRUCT_BEGIN -struct StrataMessage +/** + * Sent as context message for set reconciliation. + */ +struct GNUNET_CONSENSUS_RoundContextMessage { - struct GNUNET_MessageHeader header; /** - * Number of strata in this estimator. + * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT */ - uint16_t num_strata; - /* struct GNUNET_HashCode hash_buckets[ibf_size*num_strata] */ - /* struct GNUNET_HashCode id_buckets[ibf_size*num_strata] */ - /* uint8_t count_buckets[ibf_size*num_strata] */ -}; - -struct DifferenceDigest -{ struct GNUNET_MessageHeader header; - uint8_t order; - uint8_t round; + uint32_t round; + uint32_t exp_round; + uint32_t exp_subround; }; -struct Element -{ - struct GNUNET_MessageHeader header; - struct GNUNET_HashCode hash; -}; - -struct ConsensusHello -{ - struct GNUNET_MessageHeader header; - struct GNUNET_HashCode global_id; - uint8_t round; -}; - - GNUNET_NETWORK_STRUCT_END #endif