diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-04-11 10:08:52 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-04-11 10:08:52 +0000 |
commit | 210be82b7cdc6058401e7d5042aa50dd0b750c92 (patch) | |
tree | e2bfa5a87038ef0a7f906d5ede8d6e7ea7f2638b /src/include | |
parent | 2b406c1533a919057cda8850315af1fca5b48a45 (diff) | |
download | gnunet-210be82b7cdc6058401e7d5042aa50dd0b750c92.tar.gz gnunet-210be82b7cdc6058401e7d5042aa50dd0b750c92.zip |
added consensus log-round simulation, work on consensus service, still problems with dv test case
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_consensus_service.h | 4 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/include/gnunet_consensus_service.h b/src/include/gnunet_consensus_service.h index 0c74a6a27..f7f784f6e 100644 --- a/src/include/gnunet_consensus_service.h +++ b/src/include/gnunet_consensus_service.h | |||
@@ -71,10 +71,8 @@ struct GNUNET_CONSENSUS_Element | |||
71 | * | 71 | * |
72 | * @param cls closure | 72 | * @param cls closure |
73 | * @param element new element, NULL on error | 73 | * @param element new element, NULL on error |
74 | * @return GNUNET_OK if the valid is well-formed and should be added to the consensus, | ||
75 | * GNUNET_SYSERR if the element should be ignored and not be propagated | ||
76 | */ | 74 | */ |
77 | typedef int (*GNUNET_CONSENSUS_ElementCallback) (void *cls, | 75 | typedef void (*GNUNET_CONSENSUS_ElementCallback) (void *cls, |
78 | const struct GNUNET_CONSENSUS_Element *element); | 76 | const struct GNUNET_CONSENSUS_Element *element); |
79 | 77 | ||
80 | 78 | ||
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 7179914af..431542660 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -1754,6 +1754,11 @@ extern "C" | |||
1754 | */ | 1754 | */ |
1755 | #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_FIN 548 | 1755 | #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_FIN 548 |
1756 | 1756 | ||
1757 | /** | ||
1758 | * Abort a round, don't send requested elements anymore | ||
1759 | */ | ||
1760 | #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ABORT 548 | ||
1761 | |||
1757 | 1762 | ||
1758 | /** | 1763 | /** |
1759 | * Next available: 570 | 1764 | * Next available: 570 |