diff options
author | Determinant <[email protected]> | 2018-08-03 17:22:34 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-08-03 17:22:34 -0400 |
commit | 3e9f8b641e623054e50f69a5b41d85f8e65a2e13 (patch) | |
tree | e79f4ce93797954400a25976bfcdb3a627c884fe /src/hotstuff.cpp | |
parent | 745cb7a88baec540386f57edac7c84db889d63eb (diff) |
...
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r-- | src/hotstuff.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index af1ac88..04b31f8 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -350,6 +350,7 @@ void HotStuffBase::print_stat() const { for (const auto &replica: pn.all_peers()) { auto conn = pn.get_peer_conn(replica); + if (conn == nullptr) continue; size_t ns = conn->get_nsent(); size_t nr = conn->get_nrecv(); conn->clear_nsent(); |