diff options
Diffstat (limited to 'src/consensus/consensus_protocol.h')
-rw-r--r-- | src/consensus/consensus_protocol.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/consensus/consensus_protocol.h b/src/consensus/consensus_protocol.h index 77641e2b4..fc8ae7533 100644 --- a/src/consensus/consensus_protocol.h +++ b/src/consensus/consensus_protocol.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | 21 | ||
22 | /** | 22 | /** |
@@ -42,8 +42,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
42 | * Essentially contains all the fields | 42 | * Essentially contains all the fields |
43 | * from 'struct TaskKey', but in NBO. | 43 | * from 'struct TaskKey', but in NBO. |
44 | */ | 44 | */ |
45 | struct GNUNET_CONSENSUS_RoundContextMessage | 45 | struct GNUNET_CONSENSUS_RoundContextMessage { |
46 | { | ||
47 | /** | 46 | /** |
48 | * Type: #GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT | 47 | * Type: #GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT |
49 | */ | 48 | */ |
@@ -98,8 +97,7 @@ enum { | |||
98 | /** | 97 | /** |
99 | * Consensus element, either marker or payload. | 98 | * Consensus element, either marker or payload. |
100 | */ | 99 | */ |
101 | struct ConsensusElement | 100 | struct ConsensusElement { |
102 | { | ||
103 | /** | 101 | /** |
104 | * Payload element_type, only valid | 102 | * Payload element_type, only valid |
105 | * if this is not a marker element. | 103 | * if this is not a marker element. |
@@ -115,16 +113,14 @@ struct ConsensusElement | |||
115 | }; | 113 | }; |
116 | 114 | ||
117 | 115 | ||
118 | struct ConsensusSizeElement | 116 | struct ConsensusSizeElement { |
119 | { | ||
120 | struct ConsensusElement ce; | 117 | struct ConsensusElement ce; |
121 | 118 | ||
122 | uint64_t size GNUNET_PACKED; | 119 | uint64_t size GNUNET_PACKED; |
123 | uint8_t sender_index; | 120 | uint8_t sender_index; |
124 | }; | 121 | }; |
125 | 122 | ||
126 | struct ConsensusStuffedElement | 123 | struct ConsensusStuffedElement { |
127 | { | ||
128 | struct ConsensusElement ce; | 124 | struct ConsensusElement ce; |
129 | struct GNUNET_HashCode rand GNUNET_PACKED; | 125 | struct GNUNET_HashCode rand GNUNET_PACKED; |
130 | }; | 126 | }; |