Skip to content

Commit 702fa9f

Browse files
authored
Merge pull request #1809 from cyrossignol/polls
voting: Overhaul the voting system
2 parents e8558c0 + e211583 commit 702fa9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+6773
-1559
lines changed

src/Makefile.am

+17-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ GRIDCOIN_CORE_H = \
7373
compat.h \
7474
compat/byteswap.h \
7575
compat/endian.h \
76-
contract/polls.h \
7776
crypter.h \
7877
enumbytes.h \
7978
filehash.h \
@@ -110,6 +109,14 @@ GRIDCOIN_CORE_H = \
110109
neuralnet/researcher.h \
111110
neuralnet/superblock.h \
112111
neuralnet/tally.h \
112+
neuralnet/voting/builders.h \
113+
neuralnet/voting/claims.h \
114+
neuralnet/voting/fwd.h \
115+
neuralnet/voting/payloads.h \
116+
neuralnet/voting/poll.h \
117+
neuralnet/voting/registry.h \
118+
neuralnet/voting/result.h \
119+
neuralnet/voting/vote.h \
113120
netbase.h \
114121
net.h \
115122
pbkdf2.h \
@@ -165,7 +172,6 @@ GRIDCOIN_CORE_CPP = addrdb.cpp \
165172
block.cpp \
166173
boinc.cpp \
167174
checkpoints.cpp \
168-
contract/polls.cpp \
169175
crypter.cpp \
170176
fs.cpp \
171177
gridcoin.cpp \
@@ -186,21 +192,27 @@ GRIDCOIN_CORE_CPP = addrdb.cpp \
186192
neuralnet/researcher.cpp \
187193
neuralnet/superblock.cpp \
188194
neuralnet/tally.cpp \
195+
neuralnet/voting/builders.cpp \
196+
neuralnet/voting/claims.cpp \
197+
neuralnet/voting/poll.cpp \
198+
neuralnet/voting/registry.cpp \
199+
neuralnet/voting/result.cpp \
200+
neuralnet/voting/vote.cpp \
189201
netbase.cpp \
190202
net.cpp \
191203
noui.cpp \
192204
pbkdf2.cpp \
193205
protocol.cpp \
194-
contract/rpccontract.cpp \
195206
rpcblockchain.cpp \
196207
rpcclient.cpp \
197-
rpcmisc.cpp \
208+
rpcdataacq.cpp \
198209
rpcmining.cpp \
210+
rpcmisc.cpp \
199211
rpcnet.cpp \
200212
rpcprotocol.cpp \
201213
rpcrawtransaction.cpp \
202214
rpcserver.cpp \
203-
rpcdataacq.cpp \
215+
rpcvoting.cpp \
204216
scraper_net.cpp \
205217
scraper/http.cpp \
206218
scraper/scraper.cpp \

src/appcache.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ namespace
1414
// up to date with the sections.
1515
const std::unordered_map<std::string, Section> section_name_map =
1616
{
17-
{ "global", Section::GLOBAL },
1817
{ "protocol", Section::PROTOCOL },
19-
{ "poll", Section::POLL },
20-
{ "vote", Section::VOTE },
2118
{ "scraper", Section::SCRAPER }
2219
};
2320

src/appcache.h

-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
enum class Section
88
{
9-
GLOBAL,
109
PROTOCOL,
11-
POLL,
12-
VOTE,
1310
SCRAPER,
1411

1512
// Enum counting entry. Using it will throw.

0 commit comments

Comments
 (0)