diff options
author | Determinant <[email protected]> | 2018-09-10 16:23:35 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-09-10 16:23:35 -0400 |
commit | 95b193bb3b0bba62f168c7e2c3f45c54d4849e27 (patch) | |
tree | f5164f02d35b1b3a5723a52ff4f05a300d794119 /include | |
parent | 073f33b2bdbef4fb711174033707d7b164036b6e (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/hotstuff/hotstuff.h | 8 |
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); |