diff options
author | Determinant <[email protected]> | 2018-07-31 13:24:14 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-31 13:24:14 -0400 |
commit | 6131c5e5cc1e83fdbfbc8fc4ce419765ba3d180a (patch) | |
tree | f49440a55b84391029516ebd4de28cb266880c8b /src/hotstuff.cpp | |
parent | ec6a1f84324faf8e7c92f32137464db57410f58a (diff) |
add cmake options
Diffstat (limited to 'src/hotstuff.cpp')
-rw-r--r-- | src/hotstuff.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotstuff.cpp b/src/hotstuff.cpp index c01f2f3..abd5116 100644 --- a/src/hotstuff.cpp +++ b/src/hotstuff.cpp @@ -96,7 +96,7 @@ void HotStuffBase::add_replica(ReplicaID idx, const NetAddr &addr, } void HotStuffBase::on_fetch_blk(const block_t &blk) { -#ifdef HOTSTUFF_ENABLE_TX_PROFILE +#ifdef HOTSTUFF_BLK_PROFILE blk_profiler.get_tx(blk->get_hash()); #endif LOG_DEBUG("fetched %.10s", get_hex(blk->get_hash()).c_str()); @@ -174,7 +174,7 @@ promise_t HotStuffBase::async_fetch_blk(const uint256_t &blk_hash, auto it = blk_fetch_waiting.find(blk_hash); if (it == blk_fetch_waiting.end()) { -#ifdef HOTSTUFF_ENABLE_TX_PROFILE +#ifdef HOTSTUFF_BLK_PROFILE blk_profiler.rec_tx(blk_hash, false); #endif it = blk_fetch_waiting.insert( |