aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-09-10 16:23:35 -0400
committerDeterminant <[email protected]>2018-09-10 16:23:35 -0400
commit95b193bb3b0bba62f168c7e2c3f45c54d4849e27 (patch)
treef5164f02d35b1b3a5723a52ff4f05a300d794119 /include/hotstuff
parent073f33b2bdbef4fb711174033707d7b164036b6e (diff)
...
Diffstat (limited to 'include/hotstuff')
-rw-r--r--include/hotstuff/hotstuff.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hotstuff/hotstuff.h b/include/hotstuff/hotstuff.h
index 983a7b3..eeffaab 100644
--- a/include/hotstuff/hotstuff.h
+++ b/include/hotstuff/hotstuff.h
@@ -185,7 +185,7 @@ class HotStuffBase: public HotStuffCore {
NetAddr listen_addr,
pacemaker_bt pmaker,
EventContext eb,
- size_t nworker = 4);
+ size_t nworker);
~HotStuffBase();
@@ -248,13 +248,15 @@ class HotStuff: public HotStuffBase {
const bytearray_t &raw_privkey,
NetAddr listen_addr,
pacemaker_bt pmaker,
- EventContext eb = EventContext()):
+ EventContext eb = EventContext(),
+ size_t nworker = 4):
HotStuffBase(blk_size,
rid,
new PrivKeyType(raw_privkey),
listen_addr,
std::move(pmaker),
- eb) {}
+ eb,
+ nworker) {}
void add_replica(ReplicaID idx, const NetAddr &addr, const bytearray_t &pubkey_raw) {
DataStream s(pubkey_raw);