diff options
author | Determinant <[email protected]> | 2018-09-10 16:24:49 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-09-10 16:24:49 -0400 |
commit | 8d5449339d3dacc31c614e27669ce6eb9eb11960 (patch) | |
tree | f5164f02d35b1b3a5723a52ff4f05a300d794119 /include/hotstuff/hotstuff.h | |
parent | b425736e5ccb0eeba7a70df332a82dff619a42a8 (diff) | |
parent | 95b193bb3b0bba62f168c7e2c3f45c54d4849e27 (diff) |
Merge branch 'master' of /home/ymf/lwork/hot-stuff/code
Diffstat (limited to 'include/hotstuff/hotstuff.h')
-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); |