diff options
Diffstat (limited to 'src/consensus/consensus.h')
-rw-r--r-- | src/consensus/consensus.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h index a752988fd..e8b5c6106 100644 --- a/src/consensus/consensus.h +++ b/src/consensus/consensus.h | |||
@@ -41,30 +41,28 @@ struct GNUNET_CONSENSUS_JoinMessage | |||
41 | */ | 41 | */ |
42 | struct GNUNET_MessageHeader header; | 42 | struct GNUNET_MessageHeader header; |
43 | 43 | ||
44 | /** | ||
45 | * Number of peers (at the end of this message) that want to | ||
46 | * participate in the consensus. | ||
47 | */ | ||
44 | uint32_t num_peers GNUNET_PACKED; | 48 | uint32_t num_peers GNUNET_PACKED; |
45 | 49 | ||
46 | struct GNUNET_HashCode session_id; | ||
47 | |||
48 | /* GNUNET_PeerIdentity[num_peers] */ | ||
49 | }; | ||
50 | |||
51 | |||
52 | struct GNUNET_CONSENSUS_ConcludeMessage | ||
53 | { | ||
54 | /** | 50 | /** |
55 | * Type: GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE | 51 | * Session id of the consensus. |
56 | */ | 52 | */ |
57 | struct GNUNET_MessageHeader header; | 53 | struct GNUNET_HashCode session_id; |
58 | 54 | ||
59 | /** | 55 | /** |
60 | * Padding, must be zero. | 56 | * Start time for the consensus. |
61 | */ | 57 | */ |
62 | uint32_t reserved GNUNET_PACKED; | 58 | struct GNUNET_TIME_AbsoluteNBO start; |
63 | 59 | ||
64 | /** | 60 | /** |
65 | * Deadline for conclude | 61 | * Deadline for conclude. |
66 | */ | 62 | */ |
67 | struct GNUNET_TIME_AbsoluteNBO deadline; | 63 | struct GNUNET_TIME_AbsoluteNBO deadline; |
64 | |||
65 | /* GNUNET_PeerIdentity[num_peers] */ | ||
68 | }; | 66 | }; |
69 | 67 | ||
70 | 68 | ||